git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73643aa
)
vacuum: move variable into scope of use in ctdb_process_delete_list()
author
Michael Adam
<obnox@samba.org>
Mon, 17 Dec 2012 12:07:21 +0000
(13:07 +0100)
committer
Michael Adam
<obnox@samba.org>
Fri, 26 Apr 2013 14:17:33 +0000
(16:17 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-By: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit
4640979b526b6dac69a6a0555bfce75fe0206dac
)
server/ctdb_vacuum.c
patch
|
blob
|
history
diff --git
a/server/ctdb_vacuum.c
b/server/ctdb_vacuum.c
index 329ff5db05fbbbe2ba5e997658ed269cc40df868..9611a1514ca1a6fc8465aeb7004e380a8345576a 100644
(file)
--- a/
server/ctdb_vacuum.c
+++ b/
server/ctdb_vacuum.c
@@
-705,7
+705,6
@@
static int ctdb_process_delete_list(struct ctdb_db_context *ctdb_db,
struct ctdb_context *ctdb = ctdb_db->ctdb;
struct delete_records_list *recs;
TDB_DATA indata, outdata;
- int32_t res;
struct ctdb_node_map *nodemap;
uint32_t *active_nodes;
int num_active_nodes;
@@
-763,6
+762,7
@@
static int ctdb_process_delete_list(struct ctdb_db_context *ctdb_db,
for (i = 0; i < num_active_nodes; i++) {
struct ctdb_marshall_buffer *records;
struct ctdb_rec_data *rec;
+ int32_t res;
ret = ctdb_control(ctdb, active_nodes[i], 0,
CTDB_CONTROL_TRY_DELETE_RECORDS, 0,