Re: [PATCH v4 20/21] refs: add LMDB refs storage backend
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- Feb 11, 2016, 08:48 UTC
- Message-ID
- <56BC4AE4.6060708@alum.mit.edu>
- In-Reply-To
- <1454701462-3817-21-git-send-email-dturner@twopensource.com>
On 02/05/2016 08:44 PM, David Turner wrote:
Show 5 quoted lines
> Add a database backend for refs using LMDB. This backend runs git > for-each-ref about 30% faster than the files backend with fully-packed > refs on a repo with ~120k refs. It's also about 4x faster than using > fully-unpacked refs. In addition, and perhaps more importantly, it > avoids case-conflict issues on OS X.
When I compile this using gcc with -Werror=pointer-arith, I get the following errors:
Show 6 quoted lines
> refs/lmdb-backend.c: In function ‘rename_reflog_ent’: > refs/lmdb-backend.c:1068:39: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith] > strbuf_add(&new_key_buf, key.mv_data + key.mv_size - 8, 8); > ^ > refs/lmdb-backend.c:1068:53: error: pointer of type ‘void *’ used in arithmetic [-Werror=pointer-arith] > strbuf_add(&new_key_buf, key.mv_data + key.mv_size - 8, 8);
Michael
-- Michael Haggerty mhagger@alum.mit.edu