summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-07 01:04:10 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-08 22:33:31 +0200
commit1b5cdd76b76a98e464f352c1d44be3ea0b279c87 (patch)
treefa24b839197d9a0ca6db4ce723d52af8173a929e /source3/include
parent3c58fb27b0deb4971a77e8aa5ba74d984b81ab7c (diff)
downloadsamba-1b5cdd76b76a98e464f352c1d44be3ea0b279c87.tar.gz
samba-1b5cdd76b76a98e464f352c1d44be3ea0b279c87.tar.bz2
samba-1b5cdd76b76a98e464f352c1d44be3ea0b279c87.zip
s3/ldap: use monotonic clock for timeouts in smbldap
tevent would need monotonic clock features to make also smbldap's idle handling aware of backward clock jumps. Other areas in smbldap are clock jump save now.
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smbldap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/include/smbldap.h b/source3/include/smbldap.h
index 69b4153f28..060fcc21eb 100644
--- a/source3/include/smbldap.h
+++ b/source3/include/smbldap.h
@@ -153,7 +153,7 @@ int smbldap_modify(struct smbldap_state *ldap_state,
struct smbldap_state {
LDAP *ldap_struct;
pid_t pid;
- time_t last_ping;
+ time_t last_ping; /* monotonic */
/* retrive-once info */
const char *uri;
@@ -166,11 +166,11 @@ struct smbldap_state {
unsigned int num_failures;
- time_t last_use;
+ time_t last_use; /* monotonic */
struct event_context *event_context;
struct timed_event *idle_event;
- struct timeval last_rebind;
+ struct timeval last_rebind; /* monotonic */
};
/* struct used by both pdb_ldap.c and pdb_nds.c */