summaryrefslogtreecommitdiff
path: root/source4/cluster
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-21 16:12:27 +0100
committerStefan Metzmacher <metze@samba.org>2008-02-25 11:51:17 +0100
commit71943b209b181e1e4a65ab477b83780add7051ae (patch)
treec4b3b43ece167545c81bb287156500e6a6eb1200 /source4/cluster
parent6cb9c1c61d8087457420a56f5296662417a25bd4 (diff)
downloadsamba-71943b209b181e1e4a65ab477b83780add7051ae.tar.gz
samba-71943b209b181e1e4a65ab477b83780add7051ae.tar.bz2
samba-71943b209b181e1e4a65ab477b83780add7051ae.zip
opendb: add odb_update_oplock() call
metze (This used to be commit df576d69c6981a4879a0e9447069fcfacb3588db)
Diffstat (limited to 'source4/cluster')
-rw-r--r--source4/cluster/ctdb/opendb_ctdb.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/opendb_ctdb.c b/source4/cluster/ctdb/opendb_ctdb.c
index f056e21716..86dc1f50f1 100644
--- a/source4/cluster/ctdb/opendb_ctdb.c
+++ b/source4/cluster/ctdb/opendb_ctdb.c
@@ -450,6 +450,19 @@ static NTSTATUS odb_ctdb_close_file(struct odb_lock *lck, void *file_handle)
return odb_push_record(lck, &file);
}
+/*
+ update the oplock level of the client
+*/
+static NTSTATUS odb_ctdb_update_oplock(struct odb_lock *lck, void *file_handle,
+ uint32_t oplock_level)
+{
+ /*
+ * as this file will went away and isn't used yet,
+ * copy the implementation from the tdb backend
+ * --metze
+ */
+ return NT_STATUS_FOOBAR;
+}
/*
remove a pending opendb entry
@@ -628,7 +641,8 @@ static const struct opendb_ops opendb_ctdb_ops = {
.odb_rename = odb_ctdb_rename,
.odb_set_delete_on_close = odb_ctdb_set_delete_on_close,
.odb_get_delete_on_close = odb_ctdb_get_delete_on_close,
- .odb_can_open = odb_ctdb_can_open
+ .odb_can_open = odb_ctdb_can_open,
+ .odb_update_oplock = odb_ctdb_update_oplock
};