diff options
author | Zach Brown <[email protected]> | 2016-05-22 21:20:15 -0500 |
---|---|---|
committer | Zach Brown <[email protected]> | 2016-05-22 21:20:15 -0500 |
commit | b71c0e6f49a538f430729eeb8c499886984d06ad (patch) | |
tree | 3fbd5e8fb09e014fe458c600ff628b1b64f76fec | |
parent | 3ab1f229c5f36023502d06e3c8b7db3071ee9fdd (diff) | |
download | Paper-b71c0e6f49a538f430729eeb8c499886984d06ad.tar.gz Paper-b71c0e6f49a538f430729eeb8c499886984d06ad.zip |
Remove comment and fix build }}}}}
-rw-r--r-- | Spigot-Server-Patches/0156-Optimize-UserCache-Thread-Safe.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Spigot-Server-Patches/0156-Optimize-UserCache-Thread-Safe.patch b/Spigot-Server-Patches/0156-Optimize-UserCache-Thread-Safe.patch index fa9d4a6c0a..a37e61f0f2 100644 --- a/Spigot-Server-Patches/0156-Optimize-UserCache-Thread-Safe.patch +++ b/Spigot-Server-Patches/0156-Optimize-UserCache-Thread-Safe.patch @@ -1,4 +1,4 @@ -From fadf46bd5f5d74c2a61e95601b3bd3704b16d71b Mon Sep 17 00:00:00 2001 +From a1cf500c7a15721dfa81f4607e6f67f4cc7246a7 Mon Sep 17 00:00:00 2001 From: Aikar <[email protected]> Date: Mon, 16 May 2016 20:47:41 -0400 Subject: [PATCH] Optimize UserCache / Thread Safe @@ -23,7 +23,7 @@ index ec9f037..7e7ec23 100644 // Spigot end } diff --git a/src/main/java/net/minecraft/server/UserCache.java b/src/main/java/net/minecraft/server/UserCache.java -index 5cc2731..ca20b3d 100644 +index 5cc2731..2420112 100644 --- a/src/main/java/net/minecraft/server/UserCache.java +++ b/src/main/java/net/minecraft/server/UserCache.java @@ -108,7 +108,7 @@ public class UserCache { @@ -75,7 +75,7 @@ index 5cc2731..ca20b3d 100644 + public void c(boolean asyncSave) { + // Paper end String s = this.b.toJson(this.a(org.spigotmc.SpigotConfig.userCacheCap)); -+ Runnable save = () -> { // Paper - ensure only 1 file is writing at same time by syncing to the FD ++ Runnable save = () -> { + BufferedWriter bufferedwriter = null; @@ -85,7 +85,7 @@ index 5cc2731..ca20b3d 100644 IOUtils.closeQuietly(bufferedwriter); } + // Paper start -+ }}; ++ }; + if (asyncSave) { + MCUtil.scheduleAsyncTask(save); + } else { |