1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

ReadOnly: Rename the function ctdb_ltdb_fetch_readonly() to ctdb_ltdb_fetch_with_header() since this is what it actually does.

(This used to be ctdb commit 94a5ce4e08e7891f07dbfe4c822ca4be5ab10965)
This commit is contained in:
Ronnie Sahlberg 2011-09-13 18:38:20 +10:00
parent f5a3119dc0
commit 8e4bfba75c
3 changed files with 4 additions and 4 deletions

View File

@ -756,7 +756,7 @@ again:
talloc_set_destructor(h, fetch_lock_destructor);
/* Check if record exists yet in the TDB */
ret = ctdb_ltdb_fetch_readonly(ctdb_db, key, &h->header, h, data);
ret = ctdb_ltdb_fetch_with_header(ctdb_db, key, &h->header, h, data);
if (ret != 0) {
ctdb_ltdb_unlock(ctdb_db, key);
ret = ctdb_client_force_migration(ctdb_db, key);
@ -829,7 +829,7 @@ again:
return NULL;
}
ret = ctdb_ltdb_fetch_readonly(ctdb_db, key, &h->header, h, data);
ret = ctdb_ltdb_fetch_with_header(ctdb_db, key, &h->header, h, data);
if (ret != 0) {
ctdb_ltdb_unlock(ctdb_db, key);

View File

@ -125,7 +125,7 @@ int ctdb_ltdb_fetch(struct ctdb_db_context *ctdb_db,
if the record does not exist, *header will be NULL
and data = {0, NULL}
*/
int ctdb_ltdb_fetch_readonly(struct ctdb_db_context *ctdb_db,
int ctdb_ltdb_fetch_with_header(struct ctdb_db_context *ctdb_db,
TDB_DATA key, struct ctdb_ltdb_header *header,
TALLOC_CTX *mem_ctx, TDB_DATA *data)
{

View File

@ -671,7 +671,7 @@ int ctdb_ltdb_fetch(struct ctdb_db_context *ctdb_db,
int ctdb_ltdb_store(struct ctdb_db_context *ctdb_db, TDB_DATA key,
struct ctdb_ltdb_header *header, TDB_DATA data);
int ctdb_ltdb_delete(struct ctdb_db_context *ctdb_db, TDB_DATA key);
int ctdb_ltdb_fetch_readonly(struct ctdb_db_context *ctdb_db,
int ctdb_ltdb_fetch_with_header(struct ctdb_db_context *ctdb_db,
TDB_DATA key, struct ctdb_ltdb_header *header,
TALLOC_CTX *mem_ctx, TDB_DATA *data);
int32_t ctdb_control_start_persistent_update(struct ctdb_context *ctdb,