Skip to content

Instantly share code, notes, and snippets.

@Vagabond
Vagabond / gist:981134
Created May 19, 2011 16:07
erlang_js 1.8.5 patch
--- deps/erlang_js/c_src/spidermonkey.c.orig Wed Jan 5 02:14:56 2011
+++ deps/erlang_js/c_src/spidermonkey.c Wed Apr 13 15:03:49 2011
@@ -49,6 +49,7 @@
}
inline void end_request(spidermonkey_vm *vm) {
+ JS_TriggerOperationCallback(vm->context);
JS_EndRequest(vm->context);
JS_ClearContextThread(vm->context);
}
objstate tombstone
triggering read repair! [{685078892498860742907977265335757665463718379520,
{ok,
{r_object,<<"b">>,<<"k">>,
[{r_content,
{dict,3,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[]},
{{[],[],[],[],[],[],[],[],[],[],
[[<<"X-Riak-VTag">>,49,79,99,71,112,56,69,
notfound ok true, default, [{allow_mult,false},
{basic_quorum,false},
{big_vclock,50},
{chash_keyfun,{riak_core_util,chash_std_keyfun}},
{dw,quorum},
{last_write_wins,false},
{linkfun,
{modfun,riak_kv_wm_link_walker,
mapreduce_linkfun}},
{n_val,3},
%% -------------------------------------------------------------------
%%
%% riak_fail_backend: a fake storage engine for emulating failures.
%%
%% Copyright (c) 2007-2010 Basho Technologies, Inc. All Rights Reserved.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
%% except in compliance with the License. You may obtain
%% a copy of the License at
...............................................Failed! After 48 tests.
{one,missing,
[{deletedvclock,true}],
[{ancestor,
{r_object,<<"#k">>,<<"t~">>,
[{r_content,
{dict,2,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],
[[<<"X-Riak-Deleted">>|true]],
putting with vclock
put
get
resul from vnode {ok,{r_object,<<"b">>,<<"k">>,
[{r_content,
{dict,2,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[]},
{{[],[],[],[],[],[],[],[],[],[],
[[<<"X-Riak-VTag">>,54,70,90,118,87,115,
{r_object,<<"b">>,<<"k">>,
[{r_content,{dict,3,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],
[[<<"X-Riak-VTag">>,53,102,53,121,110,97,51,79,
99,74,51,108,97,105,49,101,89,52,103,99,48,
117]],
[],
[[<<"X-Riak-Deleted">>,116,114,117,101]],
[[<<"X-Riak-Last-Modified">>|
@Vagabond
Vagabond / delete_bug.erl
Created May 10, 2011 21:00
Riak delete bug bz://260
-module(delete_bug).
-compile([export_all]).
start(N) ->
{ok, C} = riak:local_client(),
C:set_bucket(<<"b">>, [{allow_mult, false}]),
loop(N, C).
start_pbc(N) ->
{ok, RC} = riakc_pb_socket:start_link("127.0.0.1", 8087),
command <- tag space (command_any / command_nonauth / command_auth / command_select) CRLF;
command_any <- ("CAPABILITY" / "LOGOUT" / "NOOP");
command_nonauth <- (login / authenticate / "STARTTLS");
login <- "LOGIN" space username space password;
username <- astring;
VClock compare [{<<3,87,182,27>>,{1,1304630629955233}},
{<<4,157,0,61>>,{1,1304630629958025}}]
[{<<3,87,182,27>>,{1,1304630629960059}}]
[{<<3,87,182,27>>,{1,1304630629955233}},
{<<4,157,0,61>>,{1,1304630629958025}}]