-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I'm not sure how this is possible (because of the unique index media_path_index
) but it seems like cbird
tried to delete something that it deleted just one line before
$cbird -p.dht 1 -similar -select-result -sort-rev resolution -chop -nuke
[D][Database::Database] "."
[D][Database::connect] thread:0x5637468b13b0 sqlite_0_0 ~/.local/cbird/art/_index/media0.db
[D][Database::connect] thread:0x5637468b13b0 sqlite_1_1 ~/.local/cbird/art/_index/media1.db
[D][Database::connect] thread:0x5637468b13b0 sqlite_2_2 ~/.local/cbird/art/_index/media2.db
[D][Database::connect] thread:0x5637468b13b0 sqlite_3_3 ~/.local/cbird/art/_index/media3.db
[I][Database::fillMediaGroup] sql query: 1400001
[D][Database::similar] loading index for algo 0
[I][DctHashIndex::load] sql query: 96% 1,399,808 hashes
[I][DctHashIndex::load] 1400443 hashes, 426ms
[I][Database::similar] index loaded in 4105ms
[I][Database::similar] 41000 1400443
[W][DctHashIndex::find] no hash for needle: "~/.local/cbird/art/91_New_Art/emoji-kitchen/u1f429_u1f90d.jpg"
...
[I][Database::similar] 1346000 1400443
[W][DctHashIndex::find] no hash for needle: "~/.local/cbird/art/95_Memes/stars.jpg"
[I][Database::similar] 1400000 1400443
[I][Database::similar] searched 1400443 items and found 1400443 matches in 488ms
[D][Database::similar] filter matches
[D][Database::loadWeeds] loaded 0 weeds
[I][Database::similar] filtered 1400443 matches to 28487 in 1427ms
nuke: about to move 69923 items to trash, proceed? [y/N]: y
...
[I][DesktopHelper::runProgram] QList("trash-put", "~/.local/cbird/art/91_New_Art/jonathanmccabe/20262979831_20262979831_54b4f72f6f_o.jpg")
[D][DesktopHelper::runProgram] portable PATH: "/tmp/.mount_cbirdrlRyyk/cbird/bin/" LD_LIBRARY_PATH: "/tmp/.mount_cbirdrlRyyk/cbird/lib/"
[I][DesktopHelper::runProgram] QList("trash-put", "~/.local/cbird/art/91_New_Art/jonathanmccabe/19634149424_19634149424_27dd7ce56c_o.jpg")
[D][DesktopHelper::runProgram] portable PATH: "/tmp/.mount_cbirdrlRyyk/cbird/bin/" LD_LIBRARY_PATH: "/tmp/.mount_cbirdrlRyyk/cbird/lib/"
[W][DesktopHelper::moveToTrash] requested path is not a file: "~/.local/cbird/art/91_New_Art/jonathanmccabe/20262979831_20262979831_54b4f72f6f_o.jpg"
# exit 0
I'm not sure how to reproduce this bug but it has only happened once and I'm not too concerned about it but:
- cbird exits with code
0
after this. The exit code should probably be non-zero ? - it would be convenient to have an option to save the selected paths to a random or named NUL-delimited file
my short term workaround:
cbird -p.dht 1 -similar -select-result -sort-rev resolution -chop -dump > out
cat out | grep path | sed 's|.* = ||' | sed 's|~/.local/cbird/art/||' | string unescape | parallel -j20 rm {}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request