X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Flock.c;h=b57c53449466437c7cdd16cdc21ff4c67866b8a9;hb=399c393dd31e7430adbaf9526fc95513e0e0e1fb;hp=c5dd084e82bf04af7c1dee6b12996f25749276cc;hpb=3d917ba6dffe2029608a3d4c870dfdb4033ca4c9;p=ccan diff --git a/ccan/tdb2/lock.c b/ccan/tdb2/lock.c index c5dd084e..b57c5344 100644 --- a/ccan/tdb2/lock.c +++ b/ccan/tdb2/lock.c @@ -452,12 +452,6 @@ enum TDB_ERROR tdb_allrecord_lock(struct tdb_context *tdb, int ltype, enum TDB_ERROR ecode; tdb_bool_err berr; - /* FIXME: There are no locks on read-only dbs */ - if (tdb->read_only) { - return tdb_logerr(tdb, TDB_ERR_LOCK, TDB_LOG_USE_ERROR, - "tdb_allrecord_lock: read-only"); - } - if (tdb->allrecord_lock.count && (ltype == F_RDLCK || tdb->allrecord_lock.ltype == F_WRLCK)) { tdb->allrecord_lock.count++;