From: Kyle Meyer <kyle@kyleam.com>
To: meta@public-inbox.org
Subject: lei: accessing blob after import requires daemon restart
Date: Mon, 22 Feb 2021 00:37:41 -0500 [thread overview]
Message-ID: <8735xou0gq.fsf@kyleam.com> (raw)
When playing around with lei-import, I was unable to display an mbox for
a just-imported message:
# starting in an uninitialized state with no externals
$ curl -d'' -fsS 'https://public-inbox.org/meta/?q=cgit+blob+solver&x=m' \
| zcat >t.mbox
$ lei import mboxrd:t.mbox
$ lei q -f ldjson s:remove
{"blob":"089cdf1af1d738068494a653532ed01b1844407d","docid":11,...}
$ lei q -f mboxrd s:remove
missing 089cdf1af1d738068494a653532ed01b1844407d
It's in the local repo though:
$ git -C ~/.local/share/lei/store/local/0.git \
rev-parse --verify 089cdf1af1d738068494a653532ed01b1844407d^{blob}
089cdf1af1d738068494a653532ed01b1844407d
Killing the daemon and trying again resolves the issue:
$ lei daemon-kill
$ lei q -f mboxrd s:remove | head -1
From 089cdf1af1d738068494a653532ed01b1844407d=99@mboxrd Thu Jan 1 00:00:00 1970
Sorry if I'm reporting a known to-do; with a quick search, I didn't spot
anything on the list or in the code, and it feels like enough of a
corner case to be worth mentioning.
next reply other threads:[~2021-02-22 5:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-22 5:37 Kyle Meyer [this message]
2021-02-22 6:18 ` [PATCH] lei_store: populate ALL.git/alternates with new epochs Eric Wong
2021-02-22 22:47 ` Kyle Meyer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735xou0gq.fsf@kyleam.com \
--to=kyle@kyleam.com \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).