Commit Graph

142 Commits

Author SHA1 Message Date
Sebastian Meßmer
e3f7491d2d SynchronizedBlockStore allows concurrent access to the same block, but ensures that the block is only loaded once from the underlying blockstore 2015-03-31 08:02:24 -04:00
Sebastian Meßmer
41600c13f7 Introduce a mutex for OpenBlockList 2015-03-29 08:36:09 -04:00
Sebastian Meßmer
9b5ad835db Implemented SynchronizedBlockStore::remove() 2015-03-29 07:55:57 -04:00
Sebastian Meßmer
5571a42980 Continued working on SynchronizedBlockStore. remove() doesn't work yet. 2015-03-28 13:44:22 -04:00
Sebastian Meßmer
f6669c86c1 Added SynchronizedBlockStore. In this first version, it only synchronizes the direct blockstore functions, but still allows opening the same block twice. This will be forbidden in future commits 2015-03-19 11:16:20 +01:00
Sebastian Meßmer
6d61b896af Remove test that is dependent on gcc optimization level 2015-03-15 09:26:50 +01:00
Sebastian Messmer
bdad3df117 Fix travis 2015-03-13 17:50:32 +01:00
Sebastian Messmer
67f6333df0 Simplify test config for new biicode version 2015-03-13 17:31:46 +01:00
Sebastian Messmer
ac702cb20c Merge branch 'master' into develop 2015-03-12 16:29:21 +01:00
Sebastian Meßmer
d28db748d7 Update LICENCE to LGPL 2015-03-12 16:22:16 +01:00
Sebastian Messmer
44f760382b Use new setup biicode script 2015-03-12 14:50:51 +01:00
Sebastian Messmer
294530c662 Replaced absolute paths to messmer/blockstore/... with relative local paths 2015-03-12 14:27:51 +01:00
Sebastian Messmer
b13b9d8689 Added test cases for BlockStore::write() 2015-03-08 02:15:31 +01:00
Sebastian Messmer
f51f80e5eb TODOs 2015-03-08 01:18:06 +01:00
Sebastian Messmer
ffd9ada260 Test BlockStoreUtils fillWithZeroes() 2015-03-08 00:36:59 +01:00
Sebastian Messmer
71f55361b4 Use parallel build on travis 2015-03-07 01:50:12 +01:00
Sebastian Messmer
044f6c9f8a TODOs 2015-03-06 02:28:41 +01:00
Sebastian Messmer
471ce89421 Removed duplicate test case 2015-03-05 22:40:29 +01:00
Sebastian Messmer
2cb0f4e5de BlockStore only writes changed data back if it actually was changed 2015-03-05 22:16:57 +01:00
Sebastian Messmer
d42bda0ca6 Added Block::write() and removed writeable data() pointer 2015-03-04 20:47:02 +01:00
Sebastian Messmer
09b648317f DataBlockFixture create data that is independent from its size 2015-03-04 02:58:52 +01:00
Sebastian Messmer
19e14146f4 Be more explicit in test case 2015-02-24 17:37:39 +01:00
Sebastian Messmer
1006c2cc38 Test cases for BlockStore::numBlocks() 2015-02-24 14:42:26 +01:00
Sebastian Messmer
f491d3d183 Added BlockStore::numBlocks() 2015-02-23 21:07:07 +01:00
Sebastian Messmer
aeec8b1490 Add utility function to copy blocks 2015-02-22 19:29:30 +01:00
Sebastian Messmer
e65ce5f11f Change way of deleting blocks to be more foolproof (when deleting a block, the user is forced to give up its reference to the block) 2015-02-22 16:53:49 +01:00
Sebastian Messmer
37e8a511f5 Added BlockStore::remove(key) 2015-02-22 00:29:21 +01:00
Sebastian Messmer
a3a4bef88a Cleanup downloaded scripts after use 2015-02-20 20:41:12 +01:00
Sebastian Messmer
c66b2bb835 Updated dependency 2015-02-20 16:58:41 +01:00
Sebastian Messmer
be5ce3870c Remove installing boost in travis CI, because biicode now takes care of that 2015-02-20 16:30:15 +01:00
Sebastian Messmer
bfe1509358 Added biicode autodeploy 2015-02-19 19:20:32 +01:00
Sebastian Messmer
a204e4f51e Make travis scripts executable 2015-02-19 18:12:30 +01:00
Sebastian Messmer
3012508ce4 Adapt to new travis-utils scripts 2015-02-19 17:50:03 +01:00
Sebastian Messmer
0748f5aa61 Update dependencies 2015-02-18 17:38:03 +01:00
Sebastian Messmer
eb0656a293 Update biicode dependency and add parent 2015-02-18 17:21:39 +01:00
Sebastian Messmer
5bfe5a7bfd Run correct tests 2015-02-18 17:19:34 +01:00
Sebastian Messmer
9f48c8c81d Added Travis CI 2015-02-18 16:58:48 +01:00
Sebastian Messmer
4d5d820b60 Added README/LICENCE 2015-02-17 00:27:24 +01:00
Sebastian Messmer
0c851fa452 Switch to biicode 2015-02-17 00:23:33 +01:00
Sebastian Messmer
76b3724da4 Since blocks now store their keys, we don't need to store it somewhere else. 2015-01-24 22:27:14 +01:00
Sebastian Messmer
196b543cbb A block stores its key 2015-01-24 22:08:41 +01:00
Sebastian Messmer
f4398dfeec Implemented copying of blocks 2015-01-24 01:24:37 +01:00
Sebastian Messmer
3e9e46f706 Removed resolved TODOs 2015-01-22 21:57:56 +01:00
Sebastian Messmer
1bbe0532dc Introduce DataNodeStore and refactor DataNode 2014-12-13 17:43:02 +01:00
Sebastian Messmer
3ab2302650 Refactor KeyTest 2014-12-13 12:31:24 +01:00
Sebastian Messmer
c5d0e2c245 Add Key::ToBinary, Key::FromBinary and more test cases for Key 2014-12-13 11:59:48 +01:00
Sebastian Messmer
0d6dcd5b8b Introduce Data::copy() and test case for it, refactor FakeBlobStore using Data::copy() 2014-12-11 01:41:08 +01:00
Sebastian Messmer
15b10feeaf Create a FakeBlockStore and use it instead of InMemoryBlockStore in tests 2014-12-11 01:31:21 +01:00
Sebastian Messmer
1924c936a4 Remove Key::CreateDummyKey() 2014-12-09 20:57:10 +01:00
Sebastian Messmer
fa5058c8e3 Added some more test cases to key 2014-12-09 20:47:49 +01:00