1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00
Ralph Boehme 6a9bdca128 dbwrap_ctdb: treat empty records in ltdb as non-existing
When fetching records from remote ctdb nodes via ctdbd_parse() or in
db_ctdb_traverse(), we already check for tombstone records and skip
them. This was originally also done for the ltdb checks.

See also bug: https://bugzilla.samba.org/show_bug.cgi?id=10008
(commit 1cae59ce112ccb51b45357a52b902f80fce1eef1).

Commit 925625b52886d40b50fc631bad8bdc81970f7598 reverted part of the
patch of bug 10008 due to a deadlock it introduced.

This patch re-introduces the consistent treatment of empty records in
the ltdb but avoids the deadlock by correctly signalling
NT_STATUS_NOT_FOUND if an empty record is found authoritatively in
the ltdb and not calling ctdb in this case.

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

Pair-Programmed-With: Michael Adam <obnox@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Aug  9 04:38:44 CEST 2016 on sn-devel-144

(cherry picked from commit 25df582739918b7afd4e5497eaffe279e2d92cd1)

Autobuild-User(v4-5-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-5-test): Wed Aug 10 15:08:00 CEST 2016 on sn-devel-144
2016-08-10 15:08:00 +02:00
..
2015-03-17 11:30:52 +01:00
2016-06-07 14:34:10 +02:00
2012-03-24 17:11:11 +01:00
2014-02-20 22:58:58 +01:00
2016-07-28 05:00:18 +02:00
2016-07-28 05:00:18 +02:00
2015-12-22 02:22:50 +01:00
2015-11-06 13:43:45 +01:00
2015-10-13 01:23:07 +02:00
2014-09-18 20:36:11 +02:00
2016-02-23 22:03:16 +01:00
2016-02-23 22:03:16 +01:00
2014-11-25 07:25:44 +01:00
2016-02-23 22:03:16 +01:00
2016-02-23 22:03:16 +01:00
2015-05-06 04:14:14 +02:00
2016-02-23 22:03:16 +01:00
2015-02-13 23:32:07 +01:00
2016-02-23 22:03:16 +01:00
2015-03-17 11:30:52 +01:00
2012-04-17 10:21:02 +02:00
2012-07-18 15:54:20 -07:00
2016-05-04 01:28:23 +02:00
2016-04-15 15:32:11 +02:00
2012-05-15 18:24:10 +02:00
2015-11-06 13:43:45 +01:00
2015-05-06 15:37:14 +02:00
2016-01-10 22:24:17 +01:00
2016-01-10 22:24:17 +01:00
2012-04-19 19:13:45 +02:00