summaryrefslogtreecommitdiff
path: root/src/java
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-01-11 15:19:13 -0800
committerNoah Watkins <noahwatkins@gmail.com>2013-01-14 13:11:09 -0800
commitfb8a488e22751696af0cf3710a1b63656def1844 (patch)
tree1dad2641bd6c03ee9b1ce473938b757056790984 /src/java
parent017b6d63db41473645f38589daceccf174972136 (diff)
downloadceph-fb8a488e22751696af0cf3710a1b63656def1844.tar.gz
java: remove create/release synchronization
The constructor calls create, and finalize() calls release. Since each of these can only happen once (enforced by Java), there is no fear of a race condition. Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Diffstat (limited to 'src/java')
-rw-r--r--src/java/java/com/ceph/fs/CephMount.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/java/com/ceph/fs/CephMount.java b/src/java/java/com/ceph/fs/CephMount.java
index 3bbd4bc701e..3f58a8da149 100644
--- a/src/java/java/com/ceph/fs/CephMount.java
+++ b/src/java/java/com/ceph/fs/CephMount.java
@@ -123,7 +123,7 @@ public class CephMount {
initialized = true;
}
- private static synchronized native int native_ceph_create(CephMount mount, String id);
+ private static native int native_ceph_create(CephMount mount, String id);
/**
* Create a new CephMount with default client id.
@@ -158,7 +158,7 @@ public class CephMount {
/*
* Private access to low-level ceph_release.
*/
- private static synchronized native int native_ceph_release(long mountp);
+ private static native int native_ceph_release(long mountp);
/**
* Load configuration from a file.