diff options
author | Michael Adam <obnox@samba.org> | 2014-02-16 00:37:43 +0100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2014-03-06 11:31:15 +1100 |
commit | 776d4e88f2a6068016dedd37003cdde10f8090a5 (patch) | |
tree | 25b10393f2cc9993e5247cae221fbd3cfda9cd87 /ctdb | |
parent | 19948702992c94553e1a611540ad398de9f9d8b9 (diff) | |
download | samba-776d4e88f2a6068016dedd37003cdde10f8090a5.tar.gz samba-776d4e88f2a6068016dedd37003cdde10f8090a5.tar.xz samba-776d4e88f2a6068016dedd37003cdde10f8090a5.zip |
ctdb-vacuum: make ctdb_process_vacuum_fetch_lists() void.
This constantly returns 0 anyways.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/server/ctdb_vacuum.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ctdb/server/ctdb_vacuum.c b/ctdb/server/ctdb_vacuum.c index 0ebbb41e0d0..60e3957f3a7 100644 --- a/ctdb/server/ctdb_vacuum.c +++ b/ctdb/server/ctdb_vacuum.c @@ -761,8 +761,8 @@ static void ctdb_vacuum_traverse_db(struct ctdb_db_context *ctdb_db, * For records for which we are not the lmaster, tell the lmaster to * fetch the record. */ -static int ctdb_process_vacuum_fetch_lists(struct ctdb_db_context *ctdb_db, - struct vacuum_data *vdata) +static void ctdb_process_vacuum_fetch_lists(struct ctdb_db_context *ctdb_db, + struct vacuum_data *vdata) { int i; struct ctdb_context *ctdb = ctdb_db->ctdb; @@ -795,7 +795,7 @@ static int ctdb_process_vacuum_fetch_lists(struct ctdb_db_context *ctdb_db, } } - return 0; + return; } /** @@ -1268,10 +1268,7 @@ static int ctdb_vacuum_db(struct ctdb_db_context *ctdb_db, ctdb_process_delete_queue(ctdb_db, vdata); - ret = ctdb_process_vacuum_fetch_lists(ctdb_db, vdata); - if (ret != 0) { - return ret; - } + ctdb_process_vacuum_fetch_lists(ctdb_db, vdata); ret = ctdb_process_delete_list(ctdb_db, vdata); if (ret != 0) { |