-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: urcd
action: commit
revision:
path_from:
revision_from: 564aedad4937e6bfde8400d006937861b4473a5f:
path_to:
revision_to:

git.thebackupbox.net

urcd

git://git.thebackupbox.net/urcd

commit 564aedad4937e6bfde8400d006937861b4473a5f
Author: root <root@administrator.(none)>
Date:   Sat Feb 1 08:24:21 2014 +0000

    [src/urcd.pyx] bugfix URCDB set writeback=True for sync() operations and flag='c' (O_RDWR, create if doesn't exist)

diff --git a/src/urcd.pyx b/src/urcd.pyx

index 90010c2db293c4a7ceb76e0082b31b63d357f839..

index ..a78955ebb6243ea8670af92f2485e23eec9724fa 100644

--- a/src/urcd.pyx
+++ b/src/urcd.pyx
@@ -79,10 +79,10 @@ active_clients = collections.deque(['']*CHANLIMIT*CHANLIMIT,CHANLIMIT*CHANLIMIT)
 flood, seen, ping, sync, flood_expiry = FLOOD, now, now, now, now

 if URCDB:
-  try: db = shelve.open(URCDB)
+  try: db = shelve.open(URCDB,flag='c',writeback=True)
   except:
     os.remove(URCDB)
-    db = shelve.open(URCDB)
+    db = shelve.open(URCDB,flag='c',writeback=True)
   try: active_clients = collections.deque(list(db['active_clients']),CHANLIMIT*CHANLIMIT)
   except: pass
   try: channel_struct = db['channel_struct']

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 18:03:21 2024