fetchnodes get lots of chunks when cloud drive is empty
question
I've changed some codes, but I'm quite sure nothing harmful.
When I run my test, the log is like this:
```
[12:06:12:637] debug: (Req#5) 0 cs Sending 30: [{"a":"f","c":1,"r":1,"ca":1}] (at ds: 86301) (net.cpp:850)
[12:06:12:962] debug: (Req#3) 0 reqstat CURLMSG_DONE with HTTP status: 302 from g.api.mega.co.nz - 127.0.0.1 (net.cpp:1460)
[12:06:12:962] debug: (Req#3) 0 reqstat Redirected to https://reqstat.api.mega.co.nz/Rxn6oVO74jFKwwJ4MVBfw-L0u0yOFwYfAfCwcw (net.cpp:1475)
[12:06:12:962] debug: (Req#3) 0 reqstat [received 0 bytes of raw data] (net.cpp:1499)
[12:06:12:962] debug: Accessing reqstat URL: https://reqstat.api.mega.co.nz/Rxn6oVO74jFKwwJ4MVBfw-L0u0yOFwYfAfCwcw (megaclient.cpp:3628)
[12:06:12:962] debug: (Req#6) 0 reqstat GET target URL: https://reqstat.api.mega.co.nz/Rxn6oVO74jFKwwJ4MVBfw-L0u0yOFwYfAfCwcw (net.cpp:840)
[12:06:12:962] debug: (Req#6) 0 reqstat [sending 0 bytes of raw data] (net.cpp:845)
[12:06:13:167] debug: (Req#5) 0 cs Received chunk 16384: [{"ok0":[],"f":[{"h":"NAs00AbT","p":"","u":"9 ...
[12:06:13:167] debug: (Req#5) 0 cs Received chunk 16384: WwDozd2gefll9xf7GKkZHj4MA","k":"9 ...
...
[12:06:13:181] debug: Sync thread executing request: fetchnodes ready (sync.cpp:13307)
[12:06:13:181] debug: Resetting sc database (commands.cpp:7004)
[12:06:13:187] debug: Node filename: oneapi (node.cpp:826)
[12:06:13:188] debug: Node filename: tbb (node.cpp:826)
[12:06:13:188] debug: Node filename: hw-1-350M.png=220 (node.cpp:826)
[12:06:13:188] debug: Node filename: hw-2-660M.png=220 (node.cpp:826)
[12:06:13:189] debug: Node filename: 1-file1.txt=40 (node.cpp:826)
```
All this happen during fetchnodes stage in `getAccountsForTest`
I decypher the node names and print them in `Node::setattr`.
These files are the ones that I uploaded earlier, but I've deleted them on the cloud.
Quite confused about fetchnodes pulling them to local, they are like ghost nodes.
However, I try to switch another account and I also uploaded and deleted a lot. It behaves normal:
```
[12:15:34:483] debug: (Req#5) 0 cs Received chunk 1359: [{"ok0":[],"f":[{"h":"sqAHRRxQ","p":"
```
only a few bytes pulled in fetchnodes.
Anyone could help ?
3 条评论