graph: allow graphs to be auto-collected (controlled via yb_graph_auto_collect_db)
By default it's off, but it's allow bot to scan graph directory, do a diff with a graph db server and upload every single graph file that do not exist in central database. This is done in a separate thread and do not block server process, and only once server/game is started, not on change level. Also, it's not working on currently started map.
This commit is contained in:
parent
d82124e595
commit
46ebbeea57
8 changed files with 200 additions and 11 deletions
|
|
@ -843,11 +843,11 @@ int BotControl::cmdNodeUpload () {
|
|||
String uploadUrlAddress = cv_graph_url_upload.str ();
|
||||
|
||||
// only allow to upload to non-https endpoint
|
||||
if (uploadUrlAddress.startsWith ("http")) {
|
||||
if (uploadUrlAddress.startsWith ("https")) {
|
||||
msg ("Value of \"%s\" cvar should not contain URL scheme, only the host name and path.", cv_graph_url_upload.name ());
|
||||
return BotCommandResult::Handled;
|
||||
}
|
||||
String uploadUrl = strings.format ("http://%s", uploadUrlAddress);
|
||||
String uploadUrl = strings.format ("%s://%s", product.httpScheme, uploadUrlAddress);
|
||||
|
||||
msg ("\n");
|
||||
msg ("WARNING!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue