This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<<<<<< HEAD | |
$(cc) $(CFLAGS) $(INCLUDES) -o $(LIB_DIR)liboleg.so murmur3.o logging.o dump.o aol.o oleg.o -fpic -shared $(MATH_LINKER) | |
$(cc) $(CFLAGS) $(INCLUDES) -L$(LIB_DIR) -o $(LIB_DIR)libolegserver.so port_driver.o -fpic -shared $(MATH_LINKER) -loleg | |
======= | |
$(cc) $(CFLAGS) $(INCLUDES) -o $(LIB_DIR)liboleg.so murmur3.o logging.o dump.o oleg.o -fpic -shared $(MATH_LINKER) | |
$(cc) $(CFLAGS) $(INCLUDES) -L$(ERLLIBS) -L$(LIB_DIR) -o $(LIB_DIR)libolegserver.so port_driver.o -fpic -shared $(MATH_LINKER) -loleg -lei | |
>>>>>>> master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<<<<<<< HEAD | |
check(fread(tmp_key, sizeof(char), KEY_SIZE, fd) > 0, "Error reading"); | |
check(fread(&value_size, sizeof(size_t), 1, fd) > 0, "Error reading"); | |
======= | |
fread_res = fread(tmp_key, sizeof(char), KEY_SIZE, fd); | |
if (!fread_res) | |
ol_log_msg(LOG_WARN, "Could not read key.\n"); | |
fread_res = fread(&value_size, sizeof(size_t), 1, fd); | |
if (!fread_res) | |
ol_log_msg(LOG_WARN, "Could not read value_size.\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import env.common | |
import os | |
from fabric.api import env, cd, sudo, run, local, abort, task, prompt | |
from fabric.contrib import django | |
from lib.aquameta.fabric_utils import (virtualenv, database, raw_connection, | |
check_for_database_existence, yes_no_prompt, | |
env_apply_json_file) | |
from urllib import urlencode | |
from urllib2 import urlopen | |
import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 text files. | |
22 unique files. | |
983 files ignored. | |
http://cloc.sourceforge.net v 1.60 T=0.21 s (80.5 files/s, 8623.5 lines/s) | |
------------------------------------------------------------------------------- | |
Language files blank comment code | |
------------------------------------------------------------------------------- | |
C 5 228 119 906 | |
Erlang 4 15 89 113 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ OK kyle@imsad:~/src/Project-Oleg ] | |
$ make | |
gcc -std=c99 -Wall -Werror -g3 -c -fPIC -I./include ./src/murmur3.c | |
gcc -std=c99 -Wall -Werror -g3 -c -fPIC -I./include ./src/oleg.c | |
gcc -std=c99 -Wall -Werror -g3 -c -fPIC -I./include ./src/dump.c | |
gcc -std=c99 -Wall -Werror -g3 -lm -shared -Wl,-soname,liboleg.so.1 -o /home/kyle/src/Project-Oleg/build/lib/liboleg.so.0.1 murmur3.o dump.o oleg.o | |
if ! [ -L /home/kyle/src/Project-Oleg/build/lib/liboleg.so.1 ]; then ln -s /home/kyle/src/Project-Oleg/build/lib/liboleg.so.0.1 /home/kyle/src/Project-Oleg/build/lib/liboleg.so.1; fi | |
ln: failed to create symbolic link ‘/home/kyle/src/Project-Oleg/build/lib/liboleg.so.1’: File exists | |
make: *** [liboleg] Error 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make | |
gcc -std=c99 -Wall -Werror -g3 -c -fPIC -I./include ./src/murmur3.c | |
gcc -std=c99 -Wall -Werror -g3 -c -fPIC -I./include ./src/oleg.c | |
gcc -std=c99 -Wall -Werror -g3 -c -fPIC -I./include ./src/dump.c | |
gcc -std=c99 -Wall -Werror -g3 -shared -Wl,-soname,liboleg.so.1 -o /Users/kyle/src/personal/Project-Oleg/build/lib/liboleg.so.0.1 murmur3.o dump.o oleg.o | |
ld: unknown option: -soname | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
make: *** [liboleg] Error 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ OK kyle@insomnia:~/src/Project-Oleg ] | |
[ [git:feature/db_dumps] ] | |
$ cloc . | |
19 text files. | |
18 unique files. | |
1242 files ignored. | |
http://cloc.sourceforge.net v 1.60 T=0.11 s (115.5 files/s, 14059.6 lines/s) | |
------------------------------------------------------------------------------- | |
Language files blank comment code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ OK kyle@nebula:~/src/personal/Project-Oleg ] | |
[ [git:master] ] | |
$ ./olegdb test | |
Running tests. | |
----- | |
test_open_close | |
Opened DB: 0x7fdb11c03a10. | |
[-] Freeing 0 records. | |
[-] Iterations: 8192. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==27151== | |
==27151== HEAP SUMMARY: | |
==27151== in use at exit: 65,852 bytes in 3 blocks | |
==27151== total heap usage: 2,000,028 allocs, 2,000,025 frees, 66,007,218 bytes allocated | |
==27151== | |
==27151== 20 bytes in 1 blocks are definitely lost in loss record 1 of 3 | |
==27151== at 0x4C27730: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) | |
==27151== by 0x402ECD: ol_jar (oleg.c:197) | |
==27151== by 0x4016B7: test_scoop (test.c:118) | |
==27151== by 0x401CD1: run_tests (test.c:218) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ OK kyle@insomnia:~/src/Project-Oleg ] | |
[ [git:master] ] | |
$ cloc . | |
13 text files. | |
13 unique files. | |
646 files ignored. | |
http://cloc.sourceforge.net v 1.60 T=0.07 s (153.1 files/s, 13700.3 lines/s) | |
------------------------------------------------------------------------------- | |
Language files blank comment code |