From 0e6bc7c9391bf07cb840e91e9df7ecb9d00d2f09 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 17 Aug 2011 12:21:35 -0700 Subject: [PATCH] Unguard the DarkConsole XHProf profile write. --- .../console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/aphront/console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php b/src/aphront/console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php index c17bf381d5..67791d6f8e 100644 --- a/src/aphront/console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php +++ b/src/aphront/console/plugin/xhprof/api/DarkConsoleXHProfPluginAPI.php @@ -66,6 +66,10 @@ final class DarkConsoleXHProfPluginAPI { $data = serialize($data); $file_class = 'PhabricatorFile'; PhutilSymbolLoader::loadClass($file_class); + + // Since these happen on GET we can't do guarded writes. + $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); + $file = call_user_func( array($file_class, 'newFromFileData'), $data,