summaryrefslogtreecommitdiffstats
path: root/source4/cluster
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-22 16:30:13 +0100
committerStefan Metzmacher <metze@samba.org>2008-02-26 09:29:40 +0100
commitf94008e45a15666439766488edf84b21a86111ee (patch)
treef95cddfb058eef6840989e22195e43565772028b /source4/cluster
parent3526d1d48c86881c3fb8e54ae614d81deb242374 (diff)
downloadsamba-f94008e45a15666439766488edf84b21a86111ee.tar.gz
samba-f94008e45a15666439766488edf84b21a86111ee.tar.xz
samba-f94008e45a15666439766488edf84b21a86111ee.zip
opendb: add odb_break_oplocks() function
This send breaks to none to all level2 holders metze (This used to be commit bd3654500b14e4ed8d4a8bb25ff9da5035a16a8b)
Diffstat (limited to 'source4/cluster')
-rw-r--r--source4/cluster/ctdb/opendb_ctdb.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/opendb_ctdb.c b/source4/cluster/ctdb/opendb_ctdb.c
index 86dc1f50f11..915b7604245 100644
--- a/source4/cluster/ctdb/opendb_ctdb.c
+++ b/source4/cluster/ctdb/opendb_ctdb.c
@@ -464,6 +464,16 @@ static NTSTATUS odb_ctdb_update_oplock(struct odb_lock *lck, void *file_handle,
return NT_STATUS_FOOBAR;
}
+static NTSTATUS odb_ctdb_break_oplocks(struct odb_lock *lck)
+{
+ /*
+ * 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
*/
@@ -642,7 +652,8 @@ static const struct opendb_ops opendb_ctdb_ops = {
.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_update_oplock = odb_ctdb_update_oplock
+ .odb_update_oplock = odb_ctdb_update_oplock,
+ .odb_break_oplocks = odb_ctdb_break_oplocks
};