List:Commits« Previous MessageNext Message »
From:Hakan Kuecuekyilmaz Date:November 28 2007 6:19pm
Subject:bk commit into 6.0 tree (hakank:1.2706)
View as plain text  
Below is the list of changes that have just been committed into a local
6.0 repository of hakan. When hakan does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-11-28 19:19:44+01:00, hakank@lu0011.(none) +1 -0
  Review fixes.
  Converted spaces to tabs.

  storage/falcon/Configuration.cpp@stripped, 2007-11-28 19:19:39+01:00, hakank@lu0011.(none) +21 -20
    Review fixes.
    Converted spaces to tabs.

diff -Nrup a/storage/falcon/Configuration.cpp b/storage/falcon/Configuration.cpp
--- a/storage/falcon/Configuration.cpp	2007-11-28 13:09:32 +01:00
+++ b/storage/falcon/Configuration.cpp	2007-11-28 19:19:39 +01:00
@@ -25,7 +25,7 @@
 #include <unistd.h>
 #endif
 
-#if defined(__FreeBSD__)
+#ifdef __FreeBSD__
 #include <sys/types.h>
 #endif
 
@@ -328,29 +328,30 @@ uint64 Configuration::getPhysicalMemory(
 		error = GetLastError();
 
 #elif defined(__APPLE__) || defined(__FreeBSD__)
-    size_t availableMem = 0;
-    size_t len = sizeof availableMem;
-    static int mib[2] = {CTL_HW, HW_USERMEM};
-    sysctl(mib, 2, &availableMem, &len, NULL, 0);
-
-    // For physical RAM size on Apple we are using HW_MEMSIZE key,
-    // because HW_PHYSMEM does not report correct RAM sizes above 2GB.
-#if defined(__APPLE__)
-    uint64_t physMem = 0;
-    mib[1] = HW_MEMSIZE;
+	size_t availableMem = 0;
+	size_t len = sizeof availableMem;
+	static int mib[2] = {CTL_HW, HW_USERMEM};
+	sysctl(mib, 2, &availableMem, &len, NULL, 0);
+
+	// For physical RAM size on Apple we are using HW_MEMSIZE key,
+	// because HW_PHYSMEM does not report correct RAM sizes above 2GB.
+
+#ifdef __APPLE__
+	uint64_t physMem = 0;
+	mib[1] = HW_MEMSIZE;
 #endif
 
-#if defined(__FreeBSD__)
-    size_t physMem = 0;
-    mib[1] = HW_PHYSMEM
+#ifdef __FreeBSD__
+	size_t physMem = 0;
+	mib[1] = HW_PHYSMEM
 #endif
     
-    len = sizeof physMem;
-    sysctl(mib, 2, &physMem, &len, NULL, 0);
-    
+	len = sizeof physMem;
+	sysctl(mib, 2, &physMem, &len, NULL, 0);
+ 
 	availableMemory = (uint64) availableMem;
 	totalMemory = (uint64) physMem;
-	
+
 #else
 	int64 pageSize		= (int64)sysconf(_SC_PAGESIZE);
 	int64 physPages		= (int64)sysconf(_SC_PHYS_PAGES);
@@ -365,10 +366,10 @@ uint64 Configuration::getPhysicalMemory(
 
 	if (available)
 		*available = availableMemory;
-	
+
 	if (total)
 		*total = totalMemory;
-	
+
 	return totalMemory;
 }
 
Thread
bk commit into 6.0 tree (hakank:1.2706)Hakan Kuecuekyilmaz28 Nov