From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +BHhMirDmmAdFQEAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 19:47:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sMBMLirDmmB/OgAAbx9fmQ (envelope-from ) for ; Tue, 11 May 2021 17:47:22 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E534F11A5B for ; Tue, 11 May 2021 19:47:21 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B284827180; Tue, 11 May 2021 13:47:18 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0506F20017 for ; Tue, 11 May 2021 13:47:17 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id DEDAD60016; Tue, 11 May 2021 13:47:16 -0400 (EDT) Received: (nullmailer pid 786592 invoked by uid 1000); Tue, 11 May 2021 17:47:15 -0000 From: David Bremner To: Michael J Gruber , Alexander Adolf , notmuch@notmuchmail.org Subject: Re: [PATCH] lib/notmuch_database_reopen: reload some database metada In-Reply-To: <20210511174209.779891-1-david@tethera.net> References: <162075216869.247978.11973039285204032566.git@grubix.eu> <20210511174209.779891-1-david@tethera.net> Date: Tue, 11 May 2021 14:47:15 -0300 Message-ID: <87k0o5go2k.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: NFYR7GQPBXGS6J4GZZTQIO226A67Z5HP X-Message-ID-Hash: NFYR7GQPBXGS6J4GZZTQIO226A67Z5HP X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620755242; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=BG+iD6gafuOa5eeVBLDmkOZ3JPJvtF21v1jaTnf1ndU=; b=rg2ig8mzn9W7NwpEZ1+1cYkbC5kTXxcrAipRpfqnaYVDwheysLGf2sjmWuA+ar8vspsbU9 hsk15JkmWroROnkCwjLqGw0p7wFBM3wXYEjxkAWeUoFmVVhKzGsxcXHFx+S2xMRXRDtl0l DcRpusbXwvZhUQTRTA0UKURHjsMMAducXi4Z/g/gR5DBvVMB/V8JPCKGKaeYGvBlLDkBb+ 2Fl5cCFl8yOZJYHyzDrjiMIGloiJOLSqsjpg0NUpALyCBtsKLbPERMS5E1vjoNL7ukVc9T r2ZdQUjGnAK9FZUFmhZR4NNIZ4EdwFrp2X8eCSfPPKtEqvak6Ta65DgipbPDQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620755242; a=rsa-sha256; cv=none; b=YFITJ31Dvg+QaHwMdzf7TcFzZHkwWRNZvHZ8ENbsoOHlZzS/ALvdTfVSwo/2HOYS+RyfaL aGHn/V6mZ5UtrH87yt+2eMVPEMlOQpnfohXEuDC0FuqXkajjAxZpgdrG3Rar3vJJTN+C78 Afs/QOqiYT/zAV7Tngt15Y8vI1ZiPmc1zDCsJovwK343FevoqdoseqBWLi21ibp9cnah5i a4hAS+bpF5mI7droK0z9PRehgrwT21RHulKNTs9iGwrkuqZvY6zUWsNBtACOPAon8aP37i LjDt3SKHhbd6yq6PMa3CaYxVTFOPoNYRR5ZbP/fjT8Dzpmuw01ejN2yaUcw9hA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.56 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: E534F11A5B X-Spam-Score: -0.56 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ex2086MLwZyU David Bremner writes: > In some uses of reopen, new documents and threads maybe have been > added, and e.g. compaction may have changed the uuid. It's quite possible there is more cached data that should be discarded, but I'll have to think about that a bit more. d