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> 
							
						 
						3 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								0fc242b084 
								
									
								
							
								 
							
						 
						
							
							
								
								docs: `panicing` -> `panicking` ( #3687 )  
							
							
 
							
							
							Signed-off-by: Ryan Russell <git@ryanrussell.org>
Signed-off-by: Ryan Russell <git@ryanrussell.org> 
							
						 
						3 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								26dbc6c905 
								
							
								 
							
						 
						
							
							
								
								move to  https://github.com/seaweedfs/seaweedfs  
							
							
								
 
							
							
						 
						3 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3551ca2fcf 
								
							
								 
							
						 
						
							
							
								
								enhancement: replace sort.Slice with slices.SortFunc to reduce reflection  
							
							
								
 
							
							
						 
						4 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								28b395bef4 
								
							
								 
							
						 
						
							
							
								
								better control for reader caching  
							
							
								
 
							
							
						 
						4 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3ad5fa6f6f 
								
							
								 
							
						 
						
							
							
								
								chunk cache adds function ReadChunkAt  
							
							
								
 
							
							
						 
						4 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								b92df1654c 
								
									
								
							
								 
							
						 
						
							
							
								
								test: use `T.TempDir` to create temporary test directory  
							
							
 
							
							
							The directory created by `T.TempDir` is automatically removed when the
test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.TempDir 
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> 
							
						 
						4 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8965a53c4d 
								
							
								 
							
						 
						
							
							
								
								add warning error  
							
							
								
 
							
							
						 
						4 years ago  
				
					
						
							
							
								 
						
							
							
								
								
							
							
								
							
								a23bcbb7ec 
								
									
								
							
								 
							
						 
						
							
							
								
								refactor: move from io/ioutil to io and os package  
							
							
 
							
							
							The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil . This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> 
							
						 
						4 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								556cc3a4ca 
								
							
								 
							
						 
						
							
							
								
								mount: avoid exception if disk cache is not initialized  
							
							
 
							
							
							related to https://github.com/chrislusf/seaweedfs/issues/2102  
							
						 
						4 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								042de9359c 
								
							
								 
							
						 
						
							
							
								
								make reader_at handle random reads more efficiently for FUSE  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6bc09b18c4 
								
							
								 
							
						 
						
							
							
								
								truncate is a bit faster to reuse the storage  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4abb511db3 
								
							
								 
							
						 
						
							
							
								
								make a local copy of the in memory cached data  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ee7cdf3668 
								
							
								 
							
						 
						
							
							
								
								revert ErrXyz to ErrorXyz temporarily.  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a6d421508a 
								
							
								 
							
						 
						
							
							
								
								revert ErrXyz to ErrorXyz temporarily.  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7ffe736d20 
								
							
								 
							
						 
						
							
							
								
								renaming to ErrXyz  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7256902fb0 
								
							
								 
							
						 
						
							
							
								
								fix typo offset.ToAcutalOffset to offset.ToActualOffset  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								90b117acf1 
								
							
								 
							
						 
						
							
							
								
								update ccache version  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								707936f482 
								
							
								 
							
						 
						
							
							
								
								re-enable caching larger than 16MB  
							
							
 
							
							
							revert 62ce85610e 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b9887504e8 
								
							
								 
							
						 
						
							
							
								
								fix test  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f46eae284e 
								
							
								 
							
						 
						
							
							
								
								adjust for test  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c49e2bb9a3 
								
							
								 
							
						 
						
							
							
								
								adjust  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								62ce85610e 
								
							
								 
							
						 
						
							
							
								
								skip caching too large chunks  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ad2dcca2b 
								
							
								 
							
						 
						
							
							
								
								more tests  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e43d86c796 
								
							
								 
							
						 
						
							
							
								
								fix pre allocated volume size  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								31fc7bb2e1 
								
							
								 
							
						 
						
							
							
								
								refactor  
							
							
 
							
							
							adjust for faster test 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a41588279a 
								
							
								 
							
						 
						
							
							
								
								change log level 5 to 4  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								99d05f758c 
								
							
								 
							
						 
						
							
							
								
								adjust logs  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6a92f0bc7a 
								
							
								 
							
						 
						
							
							
								
								refactoring to typed Size  
							
							
 
							
							
							Go is amazing with refactoring! 
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								09e126bae5 
								
							
								 
							
						 
						
							
							
								
								refactoring: use interface  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be4d42b8e2 
								
							
								 
							
						 
						
							
							
								
								rename  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								97e54a80d4 
								
							
								 
							
						 
						
							
							
								
								rename variables  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								003d48da21 
								
							
								 
							
						 
						
							
							
								
								adjust logs  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bef356ce4c 
								
							
								 
							
						 
						
							
							
								
								since we already know the chunk size, no need to iterate  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a808b3b5df 
								
							
								 
							
						 
						
							
							
								
								incase the memory data is too small  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3dbd51c3c2 
								
							
								 
							
						 
						
							
							
								
								a little bit more efficient  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								212b6e7d42 
								
							
								 
							
						 
						
							
							
								
								error logging  
							
							
								
 
							
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3cec4b3c49 
								
							
								 
							
						 
						
							
							
								
								FUSE mount: fix file id written twice?  
							
							
 
							
							
							fix https://github.com/chrislusf/seaweedfs/issues/1373  
							
						 
						5 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cb3985be70 
								
							
								 
							
						 
						
							
							
								
								go fmt  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2b5c4fbbf3 
								
							
								 
							
						 
						
							
							
								
								tiered caching  
							
							
 
							
							
							1/4 for small less than 1MB files. 1/4 for 1~4MB files, 1/2 for bigger than 4MB files 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f282ed444b 
								
							
								 
							
						 
						
							
							
								
								refactoring  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7764e0465c 
								
							
								 
							
						 
						
							
							
								
								refactoring  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								94e35cdb35 
								
							
								 
							
						 
						
							
							
								
								mount: fix  
							
							
 
							
							
							fix bug found by git bisect, but I do not understand why it can cause error! 
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2a1f396df5 
								
							
								 
							
						 
						
							
							
								
								avoid duplicated setting chunks into cache  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b9b7da905e 
								
							
								 
							
						 
						
							
							
								
								handle nil chunk cache  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								df97da25f9 
								
							
								 
							
						 
						
							
							
								
								mount: add on disk caching  
							
							
								
 
							
							
						 
						6 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d7f3acb2c0 
								
							
								 
							
						 
						
							
							
								
								refactor  
							
							
								
 
							
							
						 
						6 years ago