]> git.xonotic.org Git - xonotic/xonstatdb.git/commitdiff
On second thought, let XonStat handle the attribute updates.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 25 Nov 2016 15:04:41 +0000 (10:04 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 25 Nov 2016 15:04:41 +0000 (10:04 -0500)
functions/merge_servers.sql

index f929064fe58ed21809488d0ec99f433b14d88e3f..602c8086fd63dc0a1c7be9ab62e66c82b01afbb2 100644 (file)
@@ -17,19 +17,11 @@ begin
         raise exception 'Both servers have hashkeys and they are different! Not merging.';
     end if;
 
-    -- fill in the "important" missing attributes
-    if w_server.ip_addr is null and l_server.ip_addr is not null then
-        w_server.ip_addr := l_server.ip_addr;
-    end if;
-
+    -- fill in the hashkey (everything else will be handled by xonstat)
     if w_server.hashkey is null and l_server.hashkey is not null then
         w_server.hashkey := l_server.hashkey;
     end if;
 
-    if w_server.revision is null and l_server.revision is not null then
-        w_server.revision := l_server.revsion;
-    end if;
-
     -- games get moved to the new server
     update games set server_id = p_winner_server_id where server_id = p_loser_server_id;