summaryrefslogtreecommitdiff
path: root/src/lib/shm_du_map.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-05-09 16:57:47 +0200
committerdimitri staessens <[email protected]>2016-05-09 16:57:47 +0200
commit9f401b25899c84e6d0636d848ba8bf8520e64d47 (patch)
tree4ce4749b7f1f77cb9adf78f5e19c4cc9fcece1a7 /src/lib/shm_du_map.c
parentabc4f917ca6bfa1c79493a0940f5e88bc96bffb2 (diff)
downloadouroboros-9f401b25899c84e6d0636d848ba8bf8520e64d47.tar.gz
ouroboros-9f401b25899c84e6d0636d848ba8bf8520e64d47.zip
lib/test: removed the test for the shm_du_map
The test had a synchronisation issue. Due to rebuild of the shm_du_map for random access, there was also a hack in the shm_du_map specifically to run this test. Because of this hack, the decision was made to drop this test.
Diffstat (limited to 'src/lib/shm_du_map.c')
-rw-r--r--src/lib/shm_du_map.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/shm_du_map.c b/src/lib/shm_du_map.c
index 56062c9d..71c15731 100644
--- a/src/lib/shm_du_map.c
+++ b/src/lib/shm_du_map.c
@@ -328,9 +328,8 @@ int shm_release_du_buff(struct shm_du_map * dum, size_t idx)
long blocks = 0;
- /* FIXME: this is crap for the test */
if (idx > SHM_BLOCKS_IN_MAP)
- idx = *dum->ptr_tail;
+ return -1;
pthread_mutex_lock(dum->shm_mutex);