diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-02 10:27:36 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-06-09 12:40:08 +0200 |
commit | cc3b75b807c6dd63b6dde3b449054f6640826f7c (patch) | |
tree | d3886063e2bea4ddc8c9e112468316f078c30310 /source3/lib/serverid.c | |
parent | 8d803d5a0a9a7815c4e6fcbd9b7c652fb85e94dd (diff) | |
download | samba-cc3b75b807c6dd63b6dde3b449054f6640826f7c.tar.gz samba-cc3b75b807c6dd63b6dde3b449054f6640826f7c.tar.bz2 samba-cc3b75b807c6dd63b6dde3b449054f6640826f7c.zip |
s3-server_id Add task_id to server_id to match Samba4
This will allow this structure to be shared, and allow us to create a
common messaging system between all Samba processes. Samba4 uses the
task_id to indicate the different tasks within a single unix process.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/lib/serverid.c')
-rw-r--r-- | source3/lib/serverid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index b1f6a5711e..e63818e1b8 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -26,6 +26,7 @@ struct serverid_key { pid_t pid; + uint32_t task_id; uint32_t vnn; }; @@ -72,6 +73,7 @@ static void serverid_fill_key(const struct server_id *id, { ZERO_STRUCTP(key); key->pid = id->pid; + key->task_id = id->task_id; key->vnn = id->vnn; } @@ -275,6 +277,7 @@ static bool serverid_rec_parse(const struct db_record *rec, memcpy(&data, rec->value.dptr, sizeof(data)); id->pid = key.pid; + id->task_id = key.task_id; id->vnn = key.vnn; id->unique_id = data.unique_id; *msg_flags = data.msg_flags; |