codepr / memento Goto Github PK
View Code? Open in Web Editor NEWFairly basic redis-like hashmap implementation on top of a epoll TCP server.
License: MIT License
Fairly basic redis-like hashmap implementation on top of a epoll TCP server.
License: MIT License
Nice side-project @codepr :)
I will share shibui in our next RedisWeekly :)!
mkdir -p ./release && gcc -std=gnu99 -Wall -lrt -lpthread -O3 -pedantic src/map.c src/util.c src/commands.c src/persistence.c src/networking.c src/serializer.c src/hashing.h src/cluster.c src/queue.c src/event.c src/list.c src/memento.c -o ./release/memento
/tmp/ccCxgVrQ.o: In function main': memento.c:(.text.startup+0x30d): undefined reference to
pthread_create'
/tmp/ccN8pVI2.o: In function async_write': persistence.c:(.text+0x88): undefined reference to
aio_write'
persistence.c:(.text+0x9c): undefined reference to aio_error' /tmp/ccjBougi.o: In function
start_loop':
networking.c:(.text+0x6ec): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make: *** [memento] Error 1
I will work on it.
Node A
[INF][2017-09-30 16:05:01] - Cluster succesfully formed
[DBG][2017-09-30 16:06:06] - Client connected 127.0.0.1:47766 72
[DBG][2017-09-30 16:06:11] - Command : SET
[DBG][2017-09-30 16:06:11] - Key : a
[DBG][2017-09-30 16:06:11] - Destination node: 1100 for key a
[DBG][2017-09-30 16:06:11] - Redirect toward cluster member 2735fb03b69348bbade3aae4674e390b
[DBG][2017-09-30 16:06:11] - Scheduled write to peer fd: 70
[DBG][2017-09-30 16:06:11] - Send to fd 70
[DBG][2017-09-30 16:06:11] - Handling request from 70
[DBG][2017-09-30 16:06:12] - Received data from peer node, message: mand)
[DBG][2017-09-30 16:06:12] - Answer to another node, processing inst: mand)
Node B
[INF][2017-09-30 16:05:03] - Cluster succesfully formed
[DBG][2017-09-30 16:06:11] - Unrecognized command
[DBG][2017-09-30 16:06:11] - Scheduled write to client
[DBG][2017-09-30 16:06:11] - Answering to client from worker 7
[DBG][2017-09-30 16:08:45] - Unrecognized command
[DBG][2017-09-30 16:08:45] - Scheduled write to client
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.