summaryrefslogtreecommitdiff
path: root/source3/utils/net_g_lock.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-19s3:utils: make use of samba_tevent_context_init()Stefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2012-06-19Fix warning: variable ‘status’ set but not used.Jeremy Allison1-2/+1
2012-04-19s3-g_lock: Use dbwrap_record_watch_send/recvVolker Lendecke1-3/+2
This simplifies the g_lock implementation. The new implementation tries to acquire a lock. If that fails due to a lock conflict, wait for the g_lock record to change. Upon change, just try again. The old logic had to cope with pending records and an ugly hack into ctdb itself. As a bonus, we now get a really clean async g_lock_lock_send/recv that can asynchronously wait for a global lock. This would have been almost impossible to do without the dbwrap_record_watch infrastructure.
2011-12-12s3: Remove a bunch of calls to procid_self()Volker Lendecke1-2/+2
All callers to messaging_[re]init only used procid_self()
2011-06-20tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell1-1/+1
TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-09lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett1-1/+1
This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
2011-03-30s3-messages: only include messages.h where needed.Günther Deschner1-0/+1
Guenther
2010-08-28s3: Remove the dependency of g_lock on procid_selfVolker Lendecke1-1/+1
procid_self() references global vars, don't depend on them unnecessarily
2010-03-12s3: Add "g_lock_do" as a convenience wrapper functionVolker Lendecke1-27/+22
2010-03-12s3: Actually use mem_ctx in net_g_lock_init()Volker Lendecke1-3/+3
2010-02-23s3: Consolidate server_id_self into the equivalent procid_self()Volker Lendecke1-1/+1
2010-02-12s3: Implement global locks in a g_lock tdbVolker Lendecke1-0/+213
This is the basis to implement global locks in ctdb without depending on a shared file system. The initial goal is to make ctdb persistent transactions deterministic without too many timeouts.