diff options
author | Amitay Isaacs <amitay@gmail.com> | 2014-03-27 15:11:09 +1100 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2014-03-28 05:55:13 +0100 |
commit | 30f7d7db8c0bf370464238133f75b5e0bdce37c6 (patch) | |
tree | c5fd37c72231eb7e891330343f859073a38eda3c | |
parent | 78015320b60b0fd0d8c3dc65fbbe3e38e4a02993 (diff) | |
download | samba-30f7d7db8c0bf370464238133f75b5e0bdce37c6.tar.gz samba-30f7d7db8c0bf370464238133f75b5e0bdce37c6.tar.xz samba-30f7d7db8c0bf370464238133f75b5e0bdce37c6.zip |
ctdb-tests: Use ctdb_fetch_lock instead of ctdb_fetch_lock_readonly
This will test that ctdb_fetch_lock correctly revokes readonly
delegations.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
-rw-r--r-- | ctdb/tests/src/ctdb_update_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/src/ctdb_update_record.c b/ctdb/tests/src/ctdb_update_record.c index 6eff1d04d97..78d983bccc3 100644 --- a/ctdb/tests/src/ctdb_update_record.c +++ b/ctdb/tests/src/ctdb_update_record.c @@ -45,7 +45,7 @@ static void fetch_lock_once(struct ctdb_context *ctdb, struct event_context *ev, printf("Trying to fetch lock the record ...\n"); - h = ctdb_fetch_readonly_lock(ctdb_db, tmp_ctx, key, &data, false); + h = ctdb_fetch_lock(ctdb_db, tmp_ctx, key, &data); if (h == NULL) { printf("Failed to fetch record '%s' on node %d\n", (const char *)key.dptr, ctdb_get_pnn(ctdb)); |