diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-07-21 15:58:56 +1000 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-08-23 10:35:15 +1000 |
commit | d82bf9881761cba2e50b219c2eea6952cf0f7269 (patch) | |
tree | 0884a4bb28f35243450ef02acd887553549926a1 | |
parent | c968880e8745d367a922850dd2c1b03088a8a21f (diff) | |
download | samba-d82bf9881761cba2e50b219c2eea6952cf0f7269.tar.gz samba-d82bf9881761cba2e50b219c2eea6952cf0f7269.tar.xz samba-d82bf9881761cba2e50b219c2eea6952cf0f7269.zip |
ReadOnly: Change the update_record test tool to use the new fetchlock routine that can do either normal or readonly fetchlock
(This used to be ctdb commit 6d5d79367f7d04e2a9a6ad5d8be70d609b764629)
-rw-r--r-- | ctdb/tests/src/ctdb_update_record.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ctdb/tests/src/ctdb_update_record.c b/ctdb/tests/src/ctdb_update_record.c index 823dfa3c82..5f4b9c1e21 100644 --- a/ctdb/tests/src/ctdb_update_record.c +++ b/ctdb/tests/src/ctdb_update_record.c @@ -46,7 +46,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_lock(ctdb_db, tmp_ctx, key, &data); + h = ctdb_fetch_readonly_lock(ctdb_db, tmp_ctx, key, &data, false); if (h == NULL) { printf("Failed to fetch record '%s' on node %d\n", (const char *)key.dptr, ctdb_get_pnn(ctdb)); @@ -57,8 +57,6 @@ static void fetch_lock_once(struct ctdb_context *ctdb, struct event_context *ev, printf("Record fetchlocked.\n"); header = talloc_memdup(tmp_ctx, ctdb_header_from_record_handle(h), sizeof(*header)); printf("RSN:%d\n", (int)header->rsn); - printf("Press enter to release the record ...\n"); - (void)getchar(); talloc_free(h); printf("Record released.\n"); |