Hello to everybody. Today I uploaded a directory to nextcloud on the browser interface and then I had to stop the upload.
After doing it I was not able to delete anymore the directory.
I had time ago this issue and i solved deleting from oc_file_locks the locked files records. But I wold like to understand more how it works.
For example while I upload a file I can find
MariaDB [d_nextcloud]> select * from oc_file_locks where `lock`!=0;
+---------+------+----------------------------------------+------------+
| id | lock | key | ttl |
+---------+------+----------------------------------------+------------+
| 4142902 | 1 | files/cdc01a113083d1a50aee3225bfc60f3a | 1631817536 |
| 4142903 | 1 | files/86173500f0eb66a25a4296d0fe427d4e | 1631817536 |
| 4142905 | 1 | files/1cc1d9ea7e0dbb44a6a2473e6d27b82e | 1631817536 |
| 4142908 | -1 | files/18719414b4ec566597e43522f8312b52 | 1631817536 |
| 4142909 | 1 | files/efb4620b9ca2ade3d4447d3966e9c680 | 1631817536 |
| 4142910 | 1 | files/b6f1accfc07471e0363bc0c16644d699 | 1631817536 |
| 4142911 | 1 | files/40bc2866c3b6c15b466193556fe6cc29 | 1631817536 |
| 4142912 | 1 | files/cfc9c22a1316eeb23b83057585f8b750 | 1631817536 |
+---------+------+----------------------------------------+------------+
So how to understand which file are locked? I should make a join with oc_filecache? Which query should I use?
Then, why if I
MariaDB [d_nextcloud]> select * from oc_file_locks where `lock`=0;
[...]
412 rows in set (0.002 sec)
Why after lock removed the records are not removed?
What happens if I delete this row, I let some dust in file system? I risk file corruption?