]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/private.h
tdb2: use tdb->flags & TDB_RDONLY instead of tdb->read_only for TDB1 code.
[ccan] / ccan / tdb2 / private.h
index fdd505357433fadf607c98d96f385530b509ba6f..cd52542bed1199ee86aa876fca8e0d8984d57966 100644 (file)
@@ -356,14 +356,14 @@ struct tdb_context {
        /* Our statistics. */
        struct tdb_attribute_stats stats;
 
-       /* Are we accessing directly? (debugging check). */
-       int direct_access;
-
        /* Hash function. */
        uint64_t (*hash_fn)(const void *key, size_t len, uint64_t seed, void *);
        void *hash_data;
        uint64_t hash_seed;
 
+       /* Are we accessing directly? (debugging check). */
+       int direct_access;
+
        /* Set if we are in a transaction. */
        struct tdb_transaction *transaction;