hammerspace 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.chef/cookbooks/hammerspace-development/attributes/default.rb +1 -1
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/hammerspace/backend/sparkey.rb +12 -8
- data/lib/hammerspace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmExNjc3YzY3OTJlNjVlYjViZTk1NDQ4ZmJhMWI4ODgxNzFhOWM0ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDlmODVlMTlmNzM0ZDRkODhmNGJiODc4OTMwMWRiNGZkY2I0MzZkZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2I3MGZhMDZkMWYxOTgxNDNkNGZiMDI5YWU1NDA5NWFhYTAxOWI5OTVmMDE5
|
10
|
+
Y2Y4MGViOGVjMzhlN2VlZTIyNzNlZTM2YTdiOWQ5NTZlMzI5ZmFmNWRlYTYz
|
11
|
+
MmNlOTU5OWFhZmMxNmRjNTE5NjU2MTViY2Q0NDE3MjViZDM1YTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmQxNzczNGE0NWQxZjNmY2I0NmM3MGIyZGQwNWE4NGMzNzg4NWRhMmY0NGFk
|
14
|
+
MWE2NWRiNDY4MWUwMTA2OTg5YWNjNjc4Y2ZkYWI4MDM5MzZlNjgxYzg5Mjc3
|
15
|
+
NWEwOWYwY2U4OWMzYjg3ZTI4ODM2YzFjYjkxYmEzMWRkM2I3MTQ=
|
@@ -4,4 +4,4 @@ default.hammerspace_development.hammerspace.gem_home = '/home/vagrant/.gems'
|
|
4
4
|
default.hammerspace_development.hammerspace.root = '/var/lib/hammerspace'
|
5
5
|
|
6
6
|
default.hammerspace_development.ruby.version = '1.9.1'
|
7
|
-
default.hammerspace_development.sparkey.version = '
|
7
|
+
default.hammerspace_development.sparkey.version = 'daa9941221584d89da68803303854ef7e3a8f68d'
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -39,7 +39,7 @@ data is persistent, it does not need to be reloaded from an external cache or
|
|
39
39
|
service on application startup unless the data has changed.
|
40
40
|
|
41
41
|
Unfortunately, these low-level libraries don't always support concurrent
|
42
|
-
writers. Hammerspace adds concurrency control to allow
|
42
|
+
writers. Hammerspace adds concurrency control to allow multiple processes to
|
43
43
|
update and read from a single shared copy of the data safely. Finally,
|
44
44
|
hammerspace's interface is designed to mimic Ruby's `Hash` to make integrating
|
45
45
|
with existing applications simple and straightforward. Different low-level
|
@@ -250,11 +250,13 @@ module Hammerspace
|
|
250
250
|
# release the lock immediately after opening. While we are holding the
|
251
251
|
# lock, note the target of the "current" symlink.
|
252
252
|
@hash ||= lock_for_read do
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
253
|
+
if File.exists?(cur_hash_path) && File.exists?(cur_log_path)
|
254
|
+
begin
|
255
|
+
hash = Gnista::Hash.new(cur_hash_path, cur_log_path)
|
256
|
+
@uid = File.readlink(cur_path)
|
257
|
+
hash
|
258
|
+
rescue GnistaException
|
259
|
+
end
|
258
260
|
end
|
259
261
|
end
|
260
262
|
end
|
@@ -266,9 +268,11 @@ module Hammerspace
|
|
266
268
|
# descriptors it doesn't matter what happens to the files, so we can
|
267
269
|
# release the lock immediately after opening.
|
268
270
|
lock_for_read do
|
269
|
-
|
270
|
-
|
271
|
-
|
271
|
+
if File.exists?(cur_hash_path) && File.exists?(cur_log_path)
|
272
|
+
begin
|
273
|
+
Gnista::Hash.new(cur_hash_path, cur_log_path)
|
274
|
+
rescue GnistaException
|
275
|
+
end
|
272
276
|
end
|
273
277
|
end
|
274
278
|
end
|
data/lib/hammerspace/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hammerspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Tai
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-03-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gnista
|