mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-25 03:29:10 +08:00
cleanup, add a few comments
This commit is contained in:
parent
52ce8cc4f2
commit
a0df993cef
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user