diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-12 19:25:09 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-12 19:25:09 +0100 |
commit | 2aeadb9c78df4b463ffb3293e242e19a7e0d17a9 (patch) | |
tree | c81dc60b795f2de01600cbd63dbd16b8933f38d8 /src/pack.c | |
parent | 90490113af9cef092b36c5ee0231c11675ed9f51 (diff) | |
download | libgit2-2aeadb9c78df4b463ffb3293e242e19a7e0d17a9.tar.gz |
Actually do the mmap... unsurprisingly, this makes the indexer work on SFS
On RAM: the .idx and .pack files become links to a .lock and the original download respectively.
Assume some feature (such as record locking) supported by SFS but not JXFS or RAM: is required.
Diffstat (limited to 'src/pack.c')
-rw-r--r-- | src/pack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pack.c b/src/pack.c index 85bc6707e..9b5e0e18f 100644 --- a/src/pack.c +++ b/src/pack.c @@ -215,7 +215,7 @@ static int packfile_unpack_header1( unsigned shift; unsigned long size, c; unsigned long used = 0; -printf("[pack 218] buf = %lx, used = %ld, len = %ld\n", buf, used, len); + c = buf[used++]; *type = (c >> 4) & 7; size = c & 15; @@ -261,8 +261,8 @@ int git_packfile_unpack_header( base = git_mwindow_open(mwf, w_curs, *curpos, 20, &left); if (base == NULL) return GIT_EBUFS; -printf("[pack 264] base = %lx, mwf = %lx\n", base, mwf); - ret = packfile_unpack_header1(&used, size_p, type_p, base, left); + + ret = packfile_unpack_header1(&used, size_p, type_p, base, left); git_mwindow_close(w_curs); if (ret == GIT_EBUFS) return ret; |