Git Mailing List Archive mirror
 help / color / mirror / Atom feed
blob 656f896cc282c2363c7467c9f296aa6bae4f6f1c 801 bytes (raw)
name: reftable/stack.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
/*
Copyright 2020 Google LLC

Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
*/

#ifndef STACK_H
#define STACK_H

#include "system.h"
#include "reftable-writer.h"
#include "reftable-stack.h"

struct reftable_stack {
	struct stat list_st;
	char *list_file;
	int list_fd;

	char *reftable_dir;
	int disable_auto_compact;

	struct reftable_write_options config;

	struct reftable_reader **readers;
	size_t readers_len;
	struct reftable_merged_table *merged;
	struct reftable_compaction_stats stats;
};

int read_lines(const char *filename, char ***lines);

struct segment {
	size_t start, end;
	uint64_t bytes;
};

struct segment suggest_compaction_segment(uint64_t *sizes, size_t n);

#endif

debug log:

solving 656f896cc28 ...
found 656f896cc28 in https://80x24.org/lore/git/pull.1683.git.1709669025722.gitgitgadget@gmail.com/ ||
	https://80x24.org/lore/git/def7008452303f71c1fa469609bc199c629a19ec.1711060820.git.gitgitgadget@gmail.com/ ||
	https://80x24.org/lore/git/e0f4d0dbcc1157b2d04fd4b88eea0eeb7c4d3351.1712103636.git.gitgitgadget@gmail.com/ ||
	https://80x24.org/lore/git/7e62c2286ae9c63368f1508f065b33422ca24bc8.1711685809.git.gitgitgadget@gmail.com/
found d919455669e in https://80x24.org/lore/pub/scm/linux/kernel/git/mst/git.git/
preparing index
index prepared:
100644 d919455669ede0b2872a2d19ee12870479ab99ab	reftable/stack.h

applying [1/1] https://80x24.org/lore/git/pull.1683.git.1709669025722.gitgitgadget@gmail.com/
diff --git a/reftable/stack.h b/reftable/stack.h
index d919455669e..656f896cc28 100644

Checking patch reftable/stack.h...
Applied patch reftable/stack.h cleanly.

skipping https://80x24.org/lore/git/def7008452303f71c1fa469609bc199c629a19ec.1711060820.git.gitgitgadget@gmail.com/ for 656f896cc28
skipping https://80x24.org/lore/git/e0f4d0dbcc1157b2d04fd4b88eea0eeb7c4d3351.1712103636.git.gitgitgadget@gmail.com/ for 656f896cc28
skipping https://80x24.org/lore/git/7e62c2286ae9c63368f1508f065b33422ca24bc8.1711685809.git.gitgitgadget@gmail.com/ for 656f896cc28
index at:
100644 656f896cc282c2363c7467c9f296aa6bae4f6f1c	reftable/stack.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).