]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-daemon: Free up record data if a call request is deferred
authorAmitay Isaacs <amitay@gmail.com>
Mon, 11 Sep 2017 05:59:19 +0000 (15:59 +1000)
committerStefan Metzmacher <metze@samba.org>
Sat, 16 Sep 2017 07:35:25 +0000 (09:35 +0200)
commitbb709c18aa6de2e4027b4a51b78fe22617800ddd
tree359120006760380bab48cb1cc38e102f039ac875
parent4b86f6cb6e1bd5560dc8c6ab067a0e8d59d051d7
ctdb-daemon: Free up record data if a call request is deferred

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13029

If a call request for a key (migration request) is in flight, then all
the subsequent call requests for the same key are deferred.  In that case,
the data corresponding to key read from the local tdb is useless and there
is no need to keep it around.  Once the deferred call is reprocessed,
the data corresponding to that key will be fetched again.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 77c17b03cfc4734142fd86ba3cdd9663e75f34e3)
ctdb/server/ctdb_daemon.c