柏杰
0b0fb9b9e4
avoid data race read volume.IsEmpty ( #4574 )
* avoid data race read volume.IsEmpty
- avoid phantom read isEmpty for onlyEmpty
- use `v.DataBackend.GetStat()` in v.dataFileAccessLock scope
* add Destroy(onlyEmpty: true) test
* add Destroy(onlyEmpty: false) test
* remove unused `IsEmpty()`
* change literal `8` to `SuperBlockSize`
2 years ago
Guo Lei
5b905fb2b7
Lazy loading ( #3958 )
* types packages is imported more than onece
* lazy-loading
* fix bugs
* fix bugs
* fix unit tests
* fix test error
* rename function
* unload ldb after initial startup
* Don't load ldb when starting volume server if ldbtimeout is set.
* remove uncessary unloadldb
* Update weed/command/server.go
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
* Update weed/command/volume.go
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: guol-fnst <goul-fnst@fujitsu.com>
Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2 years ago
chrislu
26dbc6c905
move to https://github.com/seaweedfs/seaweedfs
2 years ago
chrislu
735038b2c1
backup do not need to use preallocation
fix https://github.com/chrislusf/seaweedfs/issues/3044
3 years ago
Chris Lu
3be3c17f59
volume vacuum: avoid timeout with streaming progress report
fix https://github.com/chrislusf/seaweedfs/issues/2396
3 years ago
Chris Lu
e5fc35ed0c
change server address from string to a type
3 years ago
Chris Lu
d1d1fc772c
move some volume lookup operations to grpc
jwt related lookup will come in next commit
3 years ago
Chris Lu
3575d41009
go fmt
4 years ago
Chris Lu
6daa932f5c
refactoring to get master function, instead of passing master values directly
this will enable retrying later
4 years ago
Chris Lu
6d30b21b10
volume: add "-dir.idx" option for separate index storage
fix https://github.com/chrislusf/seaweedfs/issues/1265
4 years ago
Chris Lu
f43146b237
resolve directories if containing home directory
5 years ago
Chris Lu
d439d83772
volume: follow compactionBytePerSecond
related to https://github.com/chrislusf/seaweedfs/issues/1108
5 years ago
Chris Lu
d335f04de6
support env variables to overwrite toml file
5 years ago
Chris Lu
efd2f50ede
compaction changed to .idx based deletion
5 years ago
Chris Lu
09ca936c78
shell: add ec.decode command
5 years ago
Chris Lu
19b6a16003
changed from os.file to backend.DataStorageBackend
5 years ago
j.laycock
6fc6322c90
Change joeslay paths to chrislusf paths
5 years ago
Tom Maxwell
4a878c0006
Changed the InMemory bool to a uint32 so that it can be used to alter how much space to reserve
5 years ago
j.laycock
1f01eb78e8
Rename mem_map to mMap, remove some in_memory variables being passed around, added MemoryMapped member to volume struct
5 years ago
Tom Maxwell
d637d86d22
Changes to try and pass the URL parameters through - in memory flag not working still
5 years ago
j.laycock
595a1beff0
Swap imports to use joeslay
5 years ago
xushuxun
5904d78bd4
weed backup: add ttl and replication parameter
5 years ago
Chris Lu
ede876cfdb
periodic scripts exeuction from leader master
6 years ago
Chris Lu
b335f81a4f
volume: add option to limit compaction speed
6 years ago
Chris Lu
3b3651dea3
volume: atomic copying file, adds version and stopOffset
6 years ago
Chris Lu
ac2727853f
fix needle map entry size
6 years ago
Chris Lu
e5506152c0
refactoring
6 years ago
Chris Lu
13ad5c1966
refactoring
6 years ago
Wine93
361912224d
typo: remove blank
6 years ago
Chris Lu
7a14cdc90c
refactoring, go fmt
6 years ago
Chris Lu
70815e9124
WIP
6 years ago
Chris Lu
77b9af531d
adding grpc mutual tls
6 years ago
Sergey
aa5ccff6d2
fixing of typos
6 years ago
bingoohuang
ab6be025d7
go fmt and fix some typo
6 years ago
Chris Lu
fda771c83f
migrate volume sync status to grpc API on volume server
6 years ago
Chris Lu
ed44f12f6d
support Fallocate on linux
8 years ago
Chris Lu
5ce6bbf076
directory structure change to work with glide
glide has its own requirements. My previous workaround caused me some
code checkin errors. Need to fix this.
9 years ago
chrislusf
86cd40fba8
Add "weed backup" command.
This is a pre-cursor for asynchronous replication.
10 years ago