From: Stefan Metzmacher Date: Thu, 19 Apr 2012 07:06:40 +0000 (+0200) Subject: s3-dbwrap: dbwrap_watch_record_stored => NT_STATUS_NOT_FOUND is ok... X-Git-Tag: samba-4.0.0alpha20~153 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f00295f5eba1ff9a08cb35656222c78479fae11;p=thirdparty%2Fsamba.git s3-dbwrap: dbwrap_watch_record_stored => NT_STATUS_NOT_FOUND is ok... Autobuild-User: Volker Lendecke Autobuild-Date: Fri Apr 20 17:05:52 CEST 2012 on sn-devel-104 --- diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index db0d376e3ca..0c133715319 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -318,6 +318,9 @@ static void dbwrap_watch_record_stored(struct db_context *db, status = dbwrap_record_get_watchers(db, rec, talloc_tos(), &ids, &num_ids); + if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_FOUND)) { + goto done; + } if (!NT_STATUS_IS_OK(status)) { DEBUG(1, ("dbwrap_record_get_watchers failed: %s\n", nt_errstr(status)));