diff options
author | Volker Lendecke <vl@samba.org> | 2014-02-12 12:48:19 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-02-25 23:27:21 +0100 |
commit | 5e07731cf689705957f706b6430a7ed67f099f79 (patch) | |
tree | b49e618d0f80a3025e69360362ce211a3a72b57d /source3/lib | |
parent | 64bae74f565e7f07a408effb2665eba80fde5370 (diff) | |
download | samba-5e07731cf689705957f706b6430a7ed67f099f79.tar.gz samba-5e07731cf689705957f706b6430a7ed67f099f79.tar.xz samba-5e07731cf689705957f706b6430a7ed67f099f79.zip |
dbwrap: Slightly simplify dbwrap_watch_record_stored
We have messaging_send_buf, so there's no point to use an explicit
DATA_BLOB here.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Feb 25 23:27:21 CET 2014 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_watch.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/lib/dbwrap/dbwrap_watch.c b/source3/lib/dbwrap/dbwrap_watch.c index ba4381e045b..4f3a2b3f059 100644 --- a/source3/lib/dbwrap/dbwrap_watch.c +++ b/source3/lib/dbwrap/dbwrap_watch.c @@ -307,7 +307,6 @@ static void dbwrap_watch_record_stored(struct db_context *db, struct server_id *ids = NULL; size_t num_ids = 0; TDB_DATA w_key = { 0, }; - DATA_BLOB w_blob; NTSTATUS status; uint32_t i; @@ -326,12 +325,10 @@ static void dbwrap_watch_record_stored(struct db_context *db, DEBUG(1, ("dbwrap_record_watchers_key failed\n")); goto done; } - w_blob.data = w_key.dptr; - w_blob.length = w_key.dsize; for (i=0; i<num_ids; i++) { - status = messaging_send(msg, ids[i], MSG_DBWRAP_MODIFIED, - &w_blob); + status = messaging_send_buf(msg, ids[i], MSG_DBWRAP_MODIFIED, + w_key.dptr, w_key.dsize); if (!NT_STATUS_IS_OK(status)) { char *str = procid_str_static(&ids[i]); DEBUG(1, ("messaging_send to %s failed: %s\n", |