about summary refs log tree commit homepage
path: root/lib/mogilefs/mogilefs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mogilefs/mogilefs.rb')
-rw-r--r--lib/mogilefs/mogilefs.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mogilefs/mogilefs.rb b/lib/mogilefs/mogilefs.rb
index 005bb19..1ec357d 100644
--- a/lib/mogilefs/mogilefs.rb
+++ b/lib/mogilefs/mogilefs.rb
@@ -117,11 +117,8 @@ class MogileFS::MogileFS < MogileFS::Client
 
   # Returns +true+ if +key+ exists, +false+ if not
   def exist?(key)
-    rv = nil
-    args = { :key => key, :domain => @domain }
-    @backend.pipeline_dispatch(:get_paths, args) { |x| rv = (Hash === x) }
-    @backend.pipeline_wait(1)
-    rv
+    args = { :key => key, :domain => @domain , :ruby_no_raise => true}
+    Hash === @backend.get_paths(args)
   end
 
   # Get the URIs for +key+ (paths) as URI::HTTP objects