diff options
author | Noah Watkins <noahwatkins@gmail.com> | 2013-01-12 00:19:13 +0100 |
---|---|---|
committer | Noah Watkins <noahwatkins@gmail.com> | 2013-01-14 22:11:09 +0100 |
commit | fb8a488e22751696af0cf3710a1b63656def1844 (patch) | |
tree | 1dad2641bd6c03ee9b1ce473938b757056790984 /src/java | |
parent | Revert "osdmap: spread replicas across hosts with default crush map" (diff) | |
download | ceph-fb8a488e22751696af0cf3710a1b63656def1844.tar.xz ceph-fb8a488e22751696af0cf3710a1b63656def1844.zip |
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.java | 4 |
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. |