Skip to content

Instantly share code, notes, and snippets.

@aphyr
Created December 20, 2011 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aphyr/1499605 to your computer and use it in GitHub Desktop.
Save aphyr/1499605 to your computer and use it in GitHub Desktop.
# Is the given riak_object deleted?
# Without consideration for vclocks, naturally...
BERT.decode(robject)[3].all? { |content|
content[1][-1][0].flatten(1).any? { |list|
list == ["X-Riak-Deleted", 116,114,117,101]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment