Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Put the copyright/license header into a few overlooked files.

  • Loading branch information...
commit fec14a1c514b50aed269b46072e41ba9f67ffc8f 1 parent bd3e638
Gregory Burd authored
View
23 include/lsm_btree.hrl
@@ -1,3 +1,26 @@
+%% ----------------------------------------------------------------------------
+%%
+%% lsm_btree: LSM-trees (Log-Structured Merge Trees) Indexed Storage
+%%
+%% Copyright 2011-2012 (c) Trifork A/S. All Rights Reserved.
+%% http://trifork.com/ info@trifork.com
+%%
+%% Copyright 2012 (c) Basho Technologies, Inc. All Rights Reserved.
+%% http://basho.com/ info@basho.com
+%%
+%% 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
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+%% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+%% License for the specific language governing permissions and limitations
+%% under the License.
+%%
+%% ----------------------------------------------------------------------------
%%
View
104 levelpresence.sh
@@ -1,25 +1,49 @@
#!/bin/bash
+## ----------------------------------------------------------------------------
+##
+## lsm_btree: LSM-trees (Log-Structured Merge Trees) Indexed Storage
+##
+## Copyright 2011-2012 (c) Trifork A/S. All Rights Reserved.
+## http://trifork.com/ info@trifork.com
+##
+## Copyright 2012 (c) Basho Technologies, Inc. All Rights Reserved.
+## http://basho.com/ info@basho.com
+##
+## 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
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+## License for the specific language governing permissions and limitations
+## under the License.
+##
+## ----------------------------------------------------------------------------
+
function periodic() {
t=0
while sleep 1 ; do
- let "t=t+1"
- printf "%5d [" "$t"
+ let "t=t+1"
+ printf "%5d [" "$t"
- for ((i=0; i<35; i++)) ; do
- if ! [ -f "A-$i.data" ] ; then
- echo -n " "
- elif ! [ -f "B-$i.data" ] ; then
- echo -n "-"
- elif ! [ -f "C-$i.data" ] ; then
- echo -n "#"
- elif ! [ -f "X-$i.data" ] ; then
- echo -n "="
- else
- echo -n "*"
- fi
- done
- echo
+ for ((i=0; i<35; i++)) ; do
+ if ! [ -f "A-$i.data" ] ; then
+ echo -n " "
+ elif ! [ -f "B-$i.data" ] ; then
+ echo -n "-"
+ elif ! [ -f "C-$i.data" ] ; then
+ echo -n "#"
+ elif ! [ -f "X-$i.data" ] ; then
+ echo -n "="
+ else
+ echo -n "*"
+ fi
+ done
+ echo
done
}
@@ -28,31 +52,31 @@ function dynamic() {
t=0
start=`date +%s`
while true ; do
- s=""
- for ((i=0; i<35; i++)) ; do
- if ! [ -f "A-$i.data" ] ; then
- s="$s "
- elif ! [ -f "B-$i.data" ] ; then
- s="$s-"
- elif ! [ -f "C-$i.data" ] ; then
- s="$s="
- elif ! [ -f "X-$i.data" ] ; then
- s="$s%"
- else
- s="$s*"
- fi
- done
+ s=""
+ for ((i=0; i<35; i++)) ; do
+ if ! [ -f "A-$i.data" ] ; then
+ s="$s "
+ elif ! [ -f "B-$i.data" ] ; then
+ s="$s-"
+ elif ! [ -f "C-$i.data" ] ; then
+ s="$s="
+ elif ! [ -f "X-$i.data" ] ; then
+ s="$s%"
+ else
+ s="$s*"
+ fi
+ done
- if [[ "$s" != "$old" ]] ; then
- let "t=t+1"
- now=`date +%s`
- let "now=now-start"
- printf "%5d %6d [%s\n" "$t" "$now" "$s"
- old="$s"
- else
- # Sleep a little bit:
- perl -e 'use Time::HiRes; Time::HiRes::usleep(100000)'
- fi
+ if [[ "$s" != "$old" ]] ; then
+ let "t=t+1"
+ now=`date +%s`
+ let "now=now-start"
+ printf "%5d %6d [%s\n" "$t" "$now" "$s"
+ old="$s"
+ else
+ # Sleep a little bit:
+ perl -e 'use Time::HiRes; Time::HiRes::usleep(100000)'
+ fi
done
}
View
24 src/basho_bench_driver_lsm_btree.erl
@@ -1,3 +1,27 @@
+%% ----------------------------------------------------------------------------
+%%
+%% lsm_btree: LSM-trees (Log-Structured Merge Trees) Indexed Storage
+%%
+%% Copyright 2011-2012 (c) Trifork A/S. All Rights Reserved.
+%% http://trifork.com/ info@trifork.com
+%%
+%% Copyright 2012 (c) Basho Technologies, Inc. All Rights Reserved.
+%% http://basho.com/ info@basho.com
+%%
+%% 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
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+%% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+%% License for the specific language governing permissions and limitations
+%% under the License.
+%%
+%% ----------------------------------------------------------------------------
+
-module(basho_bench_driver_lsm_btree).
-record(state, { tree,
View
24 src/lsm_btree.app.src
@@ -1,3 +1,27 @@
+%% ----------------------------------------------------------------------------
+%%
+%% lsm_btree: LSM-trees (Log-Structured Merge Trees) Indexed Storage
+%%
+%% Copyright 2011-2012 (c) Trifork A/S. All Rights Reserved.
+%% http://trifork.com/ info@trifork.com
+%%
+%% Copyright 2012 (c) Basho Technologies, Inc. All Rights Reserved.
+%% http://basho.com/ info@basho.com
+%%
+%% 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
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+%% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+%% License for the specific language governing permissions and limitations
+%% under the License.
+%%
+%% ----------------------------------------------------------------------------
+
{application, lsm_btree,
[
{description, ""},
View
24 test/lsm_btree_drv.erl
@@ -1,3 +1,27 @@
+%% ----------------------------------------------------------------------------
+%%
+%% lsm_btree: LSM-trees (Log-Structured Merge Trees) Indexed Storage
+%%
+%% Copyright 2011-2012 (c) Trifork A/S. All Rights Reserved.
+%% http://trifork.com/ info@trifork.com
+%%
+%% Copyright 2012 (c) Basho Technologies, Inc. All Rights Reserved.
+%% http://basho.com/ info@basho.com
+%%
+%% 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
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+%% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+%% License for the specific language governing permissions and limitations
+%% under the License.
+%%
+%% ----------------------------------------------------------------------------
+
%% @Doc Drive a set of lsm BTrees
-module(lsm_btree_drv).
View
24 test/lsm_btree_merger_tests.erl
@@ -1,3 +1,27 @@
+%% ----------------------------------------------------------------------------
+%%
+%% lsm_btree: LSM-trees (Log-Structured Merge Trees) Indexed Storage
+%%
+%% Copyright 2011-2012 (c) Trifork A/S. All Rights Reserved.
+%% http://trifork.com/ info@trifork.com
+%%
+%% Copyright 2012 (c) Basho Technologies, Inc. All Rights Reserved.
+%% http://basho.com/ info@basho.com
+%%
+%% 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
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+%% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+%% License for the specific language governing permissions and limitations
+%% under the License.
+%%
+%% ----------------------------------------------------------------------------
+
-module(lsm_btree_merger_tests).
-ifdef(TEST).
View
24 test/lsm_btree_tests.erl
@@ -1,3 +1,27 @@
+%% ----------------------------------------------------------------------------
+%%
+%% lsm_btree: LSM-trees (Log-Structured Merge Trees) Indexed Storage
+%%
+%% Copyright 2011-2012 (c) Trifork A/S. All Rights Reserved.
+%% http://trifork.com/ info@trifork.com
+%%
+%% Copyright 2012 (c) Basho Technologies, Inc. All Rights Reserved.
+%% http://basho.com/ info@basho.com
+%%
+%% 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
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+%% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+%% License for the specific language governing permissions and limitations
+%% under the License.
+%%
+%% ----------------------------------------------------------------------------
+
-module(lsm_btree_tests).
-include("include/lsm_btree.hrl").
View
24 test/lsm_btree_writer_tests.erl
@@ -1,3 +1,27 @@
+%% ----------------------------------------------------------------------------
+%%
+%% lsm_btree: LSM-trees (Log-Structured Merge Trees) Indexed Storage
+%%
+%% Copyright 2011-2012 (c) Trifork A/S. All Rights Reserved.
+%% http://trifork.com/ info@trifork.com
+%%
+%% Copyright 2012 (c) Basho Technologies, Inc. All Rights Reserved.
+%% http://basho.com/ info@basho.com
+%%
+%% 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
+%%
+%% http://www.apache.org/licenses/LICENSE-2.0
+%%
+%% Unless required by applicable law or agreed to in writing, software
+%% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+%% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+%% License for the specific language governing permissions and limitations
+%% under the License.
+%%
+%% ----------------------------------------------------------------------------
+
-module(lsm_btree_writer_tests).
-ifdef(TEST).
Please sign in to comment.
Something went wrong with that request. Please try again.