git.samba.org
/
sahlberg
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee52771
)
server: in the VACUUM_FETCH handler, add the VACUUM_MIGRAION to the call flags
author
Michael Adam
<obnox@samba.org>
Fri, 10 Dec 2010 12:59:37 +0000
(13:59 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 9 Mar 2011 22:54:58 +0000
(23:54 +0100)
This way, the records coming in via this handler, can be treated appropriately.
Namely, they can be deleted instead of being stored when the meet the fast-path
vacuuming criteria (empty, never migrated with data...)
server/ctdb_recoverd.c
patch
|
blob
|
history
diff --git
a/server/ctdb_recoverd.c
b/server/ctdb_recoverd.c
index cbead3faed10c104a82bb045f56385887b42d05c..f3a77f2dd2c887a536c9766c22ee649aa7e1c34d 100644
(file)
--- a/
server/ctdb_recoverd.c
+++ b/
server/ctdb_recoverd.c
@@
-714,6
+714,7
@@
static void vacuum_fetch_next(struct vacuum_info *v)
ZERO_STRUCT(call);
call.call_id = CTDB_NULL_FUNC;
call.flags = CTDB_IMMEDIATE_MIGRATION;
+ call.flags |= CTDB_CALL_FLAG_VACUUM_MIGRATION;
r = v->r;
v->r = (struct ctdb_rec_data *)(r->length + (uint8_t *)r);