Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/couch/rebar.config.script b/src/couch/rebar.config.script
index b92bde1..bbc8400 100644
--- a/src/couch/rebar.config.script
+++ b/src/couch/rebar.config.script
@@ -10,30 +10,32 @@
%% License for the specific language governing permissions and limitations under
%% the License.
-%% declare values
CouchJSName = case os:type() of
rcouch subtree split notes
==========================
Starting point:
c73144aaef7f86d169afd685dae121463efea658
This commit is huge and moves lots of things around. First step is
to reset to just before this commit to start our subtree extractions.
Splitting an RCouch App
=======================
$ git reset --hard add9173^
$ git subtree split -P src/couch_mrview/
# Snipped...
-n 3769/ 3771 (3768)
-n 3770/ 3771 (3769)
-n 3771/ 3771 (3770)
@davisp
davisp / a.c
Created November 13, 2014 01:06
Apparently char can be an unsigned data type?
#include <stdio.h>
int
main(int argc, char* argv[])
{
fprintf(stderr, "%d\r\n", (char) -1);
fprintf(stderr, "%lu\r\n", sizeof(char));
}
@davisp
davisp / lsi-test.cc
Created February 20, 2015 07:50
Trigger bug in libspatialindex index validation
#include <assert.h>
#include <stdio.h>
#include <spatialindex/capi/sidx_api.h>
void
insert_box(IndexH idx, int id, double x, double y, double l)
{
double mins[] = {x - l, y - l};
diff --git a/c_src/b64url.c b/c_src/b64url.c
index 842d82e..074d9a0 100644
--- a/c_src/b64url.c
+++ b/c_src/b64url.c
@@ -411,6 +411,7 @@ b64url_encode_cont(ErlNifEnv* env, int argc, const ENTERM argv[])
ErlNifBinary src;
b64url_priv* priv = (b64url_priv*) enif_priv_data(env);
b64url_st* st = NULL;
+ void* res = NULL;
int status;
diff --git a/apps/couch/src/couch_btree.erl b/apps/couch/src/couch_btree.erl
index 36c2553..e76a485 100644
--- a/apps/couch/src/couch_btree.erl
+++ b/apps/couch/src/couch_btree.erl
@@ -348,27 +348,34 @@ complete_root(Bt, KPs) ->
% written.
chunkify(InList) ->
- BaseChunkSize = list_to_integer(config:get("couchdb",
- "btree_chunk_size", "1279")),
#!/usr/bin/env escript
%% -*- erlang -*-
%%! -pa ./src/couchdb -sasl errlog_type error -boot start_sasl -noshell
%%
main(_) ->
code:add_pathz("src/couchdb"),
application:load(crypto),
crypto:start(),
etap:plan(unknown),
case (catch test()) of
diff --git a/.gitignore b/.gitignore
index ea1f975..70788fa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
+
+# copied from jChirs .gitignore
*.beam
*.gz
*.tpl
@davisp
davisp / sbwt_default_lcnt_60s.txt
Last active September 1, 2015 19:08
Data on 17.5 and +sbwt settings
% The lock counting VM is the same except for being built with
% --enable-lock-counting
(dbcore@db1.cluster.name.goes.here)3> erlang:system_info(system_version).
"Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:24:24] [async-threads:32] [hipe] [kernel-poll:true]\n"
% These were captured after the test and back on the non
% lock counting emulator just to show a rough estimate on
% reductions and proc counts for this node.
(dbcore@db1.cluster.name.goes.here)2> erlang:statistics(reductions).