From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out1.migadu.com ([91.121.223.63]) by ewsd; Mon Sep 21 16:29:22 EDT 2020 Message-ID: <5CD8AF11CB98A58E8F7A944615EC5C2C@a-b.xyz> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a-b.xyz; s=key1; t=1600719554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o5Q5hLAZ/dSe41Eff/TZyDPzN9e1xVMAoVPirNy5ARI=; b=Y5C3JGoLBy2bOFWw/mhJkJdJba9R8bJkQkCptKR3agvegznalSNsL2GFdszfhN+lDlwyT2 fGV66Jq51u9GhoyPEgZ8llg3ZiHW3KFyw5633Qv+flLf981OH2Fn3LdV/VPiqRjnQy7CVK xciVTf4m+UbDFcIwLQWCCW0rrNEaDU3bEU+P0rUFUO6EU1JChrEoL8x9P9U86oUwiJtQ98 DgkmTNGpbMaDMy2qnSp/4gMmzDii8trSB26dCIHWwmWZtz86DuSMgqmiSvpEKDsc9+FPJT L6Mcp0u+yqmNieKLPH7qS5FvY8mUnJFiaDAPtqHI6cT1b1a96c7/Um8/JwrQQw== To: 9front@9front.org Subject: [PATCH] libndb: remove database size limit Date: Mon, 21 Sep 2020 22:19:11 +0200 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: kvik@a-b.xyz MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Spam-Score: -0.10 List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: asynchronous descriptor XMPP over SOAP injection-based scripting hardware-aware interface Libndb enforces a 128k size limit on unhashed database files. Files exceeding the limit are ignored and complaints are issued. This seems... suboptimal. The following patch removes the limit. diff -r 5ca47d85e288 sys/src/libndb/ndbhash.c --- a/sys/src/libndb/ndbhash.c Mon Sep 21 11:43:31 2020 -0700 +++ b/sys/src/libndb/ndbhash.c Mon Sep 21 22:10:06 2020 +0200 @@ -142,17 +142,6 @@ } s->ptr = NDBGETP(p); s->type = Cptr1; - } else if(db->length > 128*1024){ - print("Missing or out of date hash file %s.%s.\n", db->file, attr); - syslog(0, "ndb", "Missing or out of date hash file %s.%s.", db->file, attr); - - /* advance search to next db file */ - s->ptr = NDBNAP; - _ndbcacheadd(db, s, attr, val, nil); - if(db->next == nil) - return nil; - t = ndbsearch(db->next, s, attr, val); - goto out; } else { s->ptr = 0; s->type = Dptr;