Bug fix: Swap theads finished their work allways connected to local host. And now they check bindaddr parameter. Grammar fix in comment.
1. Changed type of queueNode.bytCounter to uint64_t.
2. Fixed unit tests.
replaced "piece" to "swapFile" in variable names
Commit grew a bit bigger, than I expected.. Changes:
1. loadServerConfigFromString(): Fixed critical bug. server.swapFileName was created like a simple char* string, though it is a sds.
2. queueCreateNamed (): When I can not create a swap direcotory for a queue, I shut down redis.
3. createQueueDirectory (): Removed queueFilesPath argument. Using server.queueSwapPath instead.
4. createQueueDirectory (): Added redis warnings on errors.
5. sayToRedis (): renamed queueSwapPath to curSwapPath.
6. synchronizeSwapData (): replaced "char tempQueueDir[], buf[]" with "sds tempQueueDir, buf". Need to refactor this in the future.
7. Everywhere: queue.isSwapAllowed was renamed to queue.isSwapAllowed_debug and is used only in unit tests.
8. Everywhere: replaced calls to str... functions corresponding sds... functions.