Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

cleanup, add a few comments

eleea0df993cefd4
diff --git a/weed/filer/arangodb/arangodb_store.go b/weed/filer/arangodb/arangodb_store.go
index 7d47ce2d5b..9095a96f95 100644
--- a/weed/filer/arangodb/arangodb_store.go
+++ b/weed/filer/arangodb/arangodb_store.go
@@ -106,11 +106,12 @@ func (store *ArangodbStore) connection(uris []string, user string, pass string)
&driver.EnsurePersistentIndexOptions{Name: "IDX_directory"}); err != nil {
return err
}
-
- if _, _, err = store.collection.EnsureFullTextIndex(ctx, []string{"directory"},
- &driver.EnsureFullTextIndexOptions{Name: "IDX_FULLTEXT_directory", MinLength: 1}); err != nil {
- return err
- }
+ // fulltext index not required since no prefix search
+ // user should just make one themselves if they intend on using it
+ // if _, _, err = store.collection.EnsureFullTextIndex(ctx, []string{"directory"},
+ // &driver.EnsureFullTextIndexOptions{Name: "IDX_FULLTEXT_directory", MinLength: 1}); err != nil {
+ // return err
+ // }
if _, _, err = store.collection.EnsurePersistentIndex(ctx, []string{"name"}, &driver.EnsurePersistentIndexOptions{
Name: "IDX_name",
@@ -267,6 +268,8 @@ func (store *ArangodbStore) ListDirectoryPrefixedEntries(ctx context.Context, di
return lastFileName, filer.ErrUnsupportedListDirectoryPrefixed
}
+//TODO: i must be misunderstanding what this function is supposed to do
+//so figure it out is the todo, i guess lol - aaaaa
//func (store *ArangodbStore) ListDirectoryPrefixedEntries(ctx context.Context, dirPath util.FullPath, startFileName string, includeStartFile bool, limit int64, prefix string, eachEntryFunc filer.ListEachEntryFunc) (lastFileName string, err error) {
// eq := ""
// if includeStartFile {
@@ -357,6 +360,7 @@ return d`, string(dirPath), eq, limit)
func (store *ArangodbStore) Shutdown() {
}
+//convert a string into arango-key safe hex bytes hash
func hashString(dir string) string {
h := md5.New()
io.WriteString(h, dir)