summaryrefslogtreecommitdiff
path: root/source3/utils/net_g_lock.c
AgeCommit message (Collapse)AuthorFilesLines
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.