Michael Adam
ca7d2bf63a
vacuum: improve logging in delete_record_traverse()
...
(This used to be ctdb commit 40ca781b3305d9f0bfee5b109d4eefde461a3f13)
2011-12-23 17:39:13 +01:00
Michael Adam
8348c431f2
vacuum: improve logging in insert_record_into_delete_queue()
...
(This used to be ctdb commit db59ac2ee6a9f5f7f088ebbc5e2800d9e57aae17)
2011-12-23 17:39:13 +01:00
Michael Adam
0a6805eed0
vacuum: improve debugging in delete_queue_traverse()
...
(This used to be ctdb commit 2c44c6dc583872c603a399afb01936abcbb05158)
2011-12-23 17:39:13 +01:00
Michael Adam
26cac0627e
vacuum: add debug message to insert_record_into_delete_queue() for failed insert
...
(This used to be ctdb commit ae78e8d991636a3a79dd9fbcefc15032afb08f55)
2011-12-23 17:39:12 +01:00
Michael Adam
190b1b240c
vacuum: improve debugging in insert_record_into_delete_queue()
...
(This used to be ctdb commit 6e6aaba28ac560d51d7450ebcf99babf868d0aea)
2011-12-23 17:39:12 +01:00
Michael Adam
cb259e6bd1
vacuum: initialize (to zero) the vacuum fetch list in ctdb_vacuum_init_vacuum_data()
...
(This used to be ctdb commit 772e08c29ef70a4cc73f7887939e5071a90a98cb)
2011-12-23 17:39:12 +01:00
Michael Adam
d29b2bd8bd
vacuum: add statistics output for processing of the delete list
...
(This used to be ctdb commit bec2ff46402b6d90521c75e8d46b9f6f2f47239a)
2011-12-23 17:39:11 +01:00
Michael Adam
7a79e77c1f
doc:ctdb.1: add generated files after update
...
(This used to be ctdb commit 4f23976fad3de63a47cf81d26dff1973d025e262)
2011-12-23 17:39:11 +01:00
Michael Adam
b3f5c4b238
doc:ctdb.1: explain that "ctdb listvars" does not list obsolete tunables any more
...
(This used to be ctdb commit 4ed94279f243729d521d365a44607fd086ae7c41)
2011-12-23 17:39:11 +01:00
Michael Adam
3b011a163f
doc:ctdb.1: adapt example output of "ctdb listvars" to current state
...
(This used to be ctdb commit 583cbf1bf8f6b1a805d77a2a1d521015868c7828)
2011-12-23 17:39:10 +01:00
Michael Adam
5fdd7fefb8
ctdb-tool: adapt formatting of "listvars" output to lenght of longest name
...
(This used to be ctdb commit 295168d99183d2d21f27a8ac6825d421fa866b28)
2011-12-23 17:39:10 +01:00
Michael Adam
8b89e542e1
tunables: don't list obsolete tunables in the list_tunables control
...
(This used to be ctdb commit d8ab86f0eb11437e50d18183858dd3177a8f61e6)
2011-12-23 17:39:10 +01:00
Michael Adam
25ac808b07
tunables: add a bool obsolete flag to the tunable_map list
...
(This used to be ctdb commit 1a7d9b25fdcf7b59598618d406c2a681c90d9163)
2011-12-23 17:39:09 +01:00
Michael Adam
bdf395c2e2
vacuum: add a comment explaining a race in the vacuum code.
...
(This used to be ctdb commit 07f1ba54b1617fadd6fe83826dd8e76f37cea071)
2011-12-23 17:39:09 +01:00
Michael Adam
c10fc30a38
vacuum: factor out initialization of the vacuum data from ctdb_vacuum_db()
...
for readability
(This used to be ctdb commit 1963e33859e9dc51e9e88664c6d95e62c7c8b8be)
2011-12-23 17:39:09 +01:00
Michael Adam
4b565b1577
vacuum: streamline ctdb_process_delete_list()
...
Reducing indentiation and improving use of talloc.
(This used to be ctdb commit 11f52ba18370f1dda983f2263f9af82045b4fdea)
2011-12-23 17:39:08 +01:00
Michael Adam
50a9444626
vacuum: factor processing of the delete list out of ctdb_vacuum_db()
...
(This used to be ctdb commit cf68b762432a18e4a3cda137591b3f005c196906)
2011-12-23 17:39:08 +01:00
Michael Adam
4e5bdd45a0
vacuum: factor processing of vacuum fetch lists out of ctdb_vacuum_db()
...
(This used to be ctdb commit 905fc9cd7126ab84c23d4a803c59e32b9c54e6f0)
2011-12-23 17:39:08 +01:00
Michael Adam
1a462df86c
vacuum: factor out full vacuum run out of ctdb_vacuum_db() as ctdb_vacuum_db_full()
...
(This used to be ctdb commit e31594e0c13899e88013ce7eb7e3dc434c2f0723)
2011-12-23 17:39:07 +01:00
Michael Adam
dbede3de7e
vacuum: factor out the fast vacuuming run into ctdb_vacuum_db_fast()
...
for readability
(This used to be ctdb commit 6596f2c4a6b4783b6498502fbbf50f87d4f59085)
2011-12-23 17:39:07 +01:00
Michael Adam
61b336f230
vacuum: rename delete_tree to delete_list
...
It is not important for the user that this is implemented as a tree.
(This used to be ctdb commit f686bc440560074c1ce866f2037ae3671f182185)
2011-12-23 17:39:07 +01:00
Michael Adam
f96f183ad1
vacuum: appropriately rename vdata.list to vdata.vacuum_fetch_list
...
(This used to be ctdb commit 09c55b76c96c4ab3fe812763007b81cf0a2ac86c)
2011-12-23 17:39:06 +01:00
Michael Adam
d96df1c374
vacuum: introduce a helper variable for the vacuum fetch list in ctdb_vacuum_db()
...
(This used to be ctdb commit 019106e035520e6b3e5702b6e76d910626c3df13)
2011-12-23 17:39:06 +01:00
Michael Adam
c9b5396783
vacuum: introduce a helper variable in add_record_to_vacuum_fetch_list() to reduce verbosity
...
(This used to be ctdb commit 48fe56ea27e3649ae7a67257fdce54f973e7c3c5)
2011-12-23 17:39:06 +01:00
Michael Adam
491c63c2a8
tools/ctdb: allow the "ctdb vacuum" stub to be run without the daemon running.
...
(This used to be ctdb commit e71afbf731f06a3b89b64220c7fd1b1ea5492d4a)
2011-12-23 17:39:05 +01:00
Michael Adam
d7611212c3
tools/ctdb: remove functionality of "ctdb vacuum", just keeping a stub.
...
(This used to be ctdb commit 8fc4d5018ee6eee8856634095694d3ad0de5b4ae)
2011-12-23 17:39:05 +01:00
Michael Adam
c7b885c1c9
vacuum: locally delete the records in the delete_tree that have be deleted remotely
...
This way, especially records added in the fast vacuuming runs
are deleted direclty instead of being handed back to the
repack run which will probably not hit because of the vacuum limit.
(This used to be ctdb commit ea3e640a28178ddcb85285f4efec62ccba2483d9)
2011-12-23 17:39:05 +01:00
Michael Adam
aa04a64679
vacuum: improve vacuuming statistics for handling the delete_tree.
...
Track the number of records failed to delete remotely with the
TRY_DELETE_RECORDS control.
And add a number of records left to delete locally.
(This used to be ctdb commit 536aad024d52f2c32dd397fc86294c963b91341b)
2011-12-23 17:39:04 +01:00
Michael Adam
1c0bc40961
vacuum: fix and improve a comment
...
(This used to be ctdb commit 0ed349c24c7399b3b440c1f5d573db77ddb988b3)
2011-12-23 17:39:04 +01:00
Michael Adam
b09bd3e841
vacuum: appropriately rename delete_traverse() to delete_marshall_traverse()
...
(This used to be ctdb commit 7c5b27bc8dce9e30f2aff05297113da981f7b9a3)
2011-12-23 17:39:04 +01:00
Michael Adam
745eb05e02
vacuum: initialize the delete_count in the vacuum data
...
(This used to be ctdb commit 970b8fc60857ad2f18f45312d355c571fb2f0246)
2011-12-23 17:39:03 +01:00
Michael Adam
e30d1828f1
vacuum: fix the VacuumInterval tunable's type to uint32_t in get_vacuum_interval()
...
(This used to be ctdb commit a5a29bf92b23e9b5a1523b06461eced422b22ffe)
2011-12-23 17:39:03 +01:00
Michael Adam
e04fad0ee4
vacuum: add new tunable VacuumInterval and mark Vacuum{Default,Min,Max}Interval obsolete
...
And use VacuumInterval instead of VacuumDefaultInterval in the code.
(This used to be ctdb commit 78530f40338f511a7cd1d33ada450905742bfa8f)
2011-12-23 17:39:02 +01:00
Michael Adam
1ca3abc5ba
vacuum: remove struct vacuum_tuning_data (unused)
...
(This used to be ctdb commit 1f62afbe1ae0b3e7dbad4081d1b51e3ab6ee5c39)
2011-12-23 17:39:02 +01:00
Michael Adam
9cae401943
vacuum: use get_vacuum_interval() in ctdb_vacuum_event()
...
(instead of using the tunable directly)
(This used to be ctdb commit e40fa9efd1c77aa35c917aba6e6e4d21d9c5cdea)
2011-12-23 17:39:02 +01:00
Michael Adam
19bbee2acd
vacuum: change get_vacuum_interval() to simply return the VacuumDefaultInterval tunable
...
(This used to be ctdb commit 621c3ce957cb946ca05a2d527c037746ae2f01d3)
2011-12-23 17:39:01 +01:00
Michael Adam
87351d8801
vacuum: remove update_tuning_db()
...
(This used to be ctdb commit d93750ea3f5cb854e5893e53795fd08656e7c12c)
2011-12-23 17:39:01 +01:00
Michael Adam
6f0b22234f
ctdb_ltdb_store_server: when storing a record that is not to be scheduled for deletion, remove it from the delete queue
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
(This used to be ctdb commit 489148e465e2b8aed87ea836e3518f43490671ca)
2011-12-23 17:39:01 +01:00
Michael Adam
a481ca711f
vacuum: add ctdb_local_remove_from_delete_queue()
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
(This used to be ctdb commit a5065b42a98c709173503e02d217f97792878625)
2011-12-23 17:39:00 +01:00
Michael Adam
3dab0c9b0b
rb_tree: fix possible access-after-free-error in trbt_traversearray32_node
...
When the traverse callback frees the current node, the traverse of the
rbtree can fail (the next node->right fails since node is not there any more...).
This is fixed by introducing variables to store the right (and left)
pointers before the callback is called.
(This used to be ctdb commit 8b0caaeed154d26c67a73659d3bbbdd63b21be11)
2011-12-23 17:39:00 +01:00
Michael Adam
6e42e03b57
fix zero-initialization of header in _ctdbd_allocate_pkt to the correct size
...
(This used to be ctdb commit 6c4d1b768ccade344a7462ecad7cf5cbbf3873d4)
2011-12-23 17:39:00 +01:00
Martin Schwenke
36462d46f4
Tests: eventscripts - add tests for CTDB_DELETE_UNEXPECTED_IPS="yes"
...
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 00373958a5d5fb8c9b99548d5b9f327e78669162)
2011-12-19 11:29:46 +11:00
Ronnie Sahlberg
a05dd12379
DOC: Update the manpage to describe all relevant tunables
...
(This used to be ctdb commit 3f471da605b9c43d5e1206452f238c2a91dc02f7)
2011-12-14 14:23:53 +11:00
Ronnie Sahlberg
f253f69063
typo
...
(This used to be ctdb commit 8fc71ad4da746e28406c06a95928052b29803062)
2011-12-14 12:52:35 +11:00
Michael Adam
5c7c66a30e
libctdb: fix libctdb's traverse after changes in the core
...
In 8281bb210858ed04992eacea7f6d02261e0fc1b1, I forgot to change
this hunk back when hiding the wire changes done in commit
ddc5da3a0df7701934404192a0a0aa659a806acb behind a new control
CTDB_CONTROL_TRAVERSE_START_EXT.
(This used to be ctdb commit faf25e8a2fdf80a016048e1f698a014ceb5e604f)
2011-12-06 10:43:28 +01:00
Michael Adam
c56db0c3b5
Revert "Fix the build that broke in 8281bb210858ed04992eacea7f6d02261e0fc1b1"
...
This reverts commit 08e06176feab1ec244496e62a916fbb77817239f.
I wanted to fix this differently, not using the extended traverse_start
control...
(This used to be ctdb commit f60de23e0a8307b5baaa9c4b8406b2b223487a48)
2011-12-06 10:43:28 +01:00
Martin Schwenke
7f25864db0
ctdb tool - move parsing of nodestring to where it is needed
...
This puts the parsing and checking logic close together. This makes
it easy to change the parsing code. Changed parsing code can now
easily use both old client code and libctdb since both are guaranteed
to be setup.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 57fb074a65dc56168fc3813b79a5bab4b3727cf3)
2011-12-06 13:59:32 +11:00
Martin Schwenke
dbd452c801
ctdb tool - replace fprintf with DEBUG
...
It's the only one in the file.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit bf1174ef699b06485b36ee8ae70412be0759e142)
2011-12-06 13:59:32 +11:00
Martin Schwenke
ba6e6f689c
ctdb tool - short circuit most of the logic in main for non-daemon commands
...
This allows all that logic to be hacked a little more easily.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit f93ffeee7b9e9ca5dd116655bdc7f89fc987ed8a)
2011-12-06 13:59:32 +11:00
Martin Schwenke
7e9f998745
ctdb tool - commands that don't use the daemon can't take -n/--node
...
It just doesn't make sense!
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit c4b72683eb046007fbc2e60b4a54bc91faf4cf7e)
2011-12-06 13:59:32 +11:00