From ca463f9c10f17d4fc68a67743fa210ce81626018 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Mon, 4 Aug 2014 13:14:12 +0200
Subject: [PATCH] Dont touch non-oc tables when doing the InnoDB repair step

---
 lib/repair/innodb.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/repair/innodb.php b/lib/repair/innodb.php
index 6f7fcfcd4c..6b795a749e 100644
--- a/lib/repair/innodb.php
+++ b/lib/repair/innodb.php
@@ -43,7 +43,7 @@ class InnoDB extends BasicEmitter implements \OC\RepairStep {
 	private function getAllMyIsamTables($connection) {
 		$dbName = \OC::$server->getConfig()->getSystemValue("dbname");
 		$result = $connection->fetchArray(
-			"SELECT table_name FROM information_schema.tables WHERE table_schema = ? AND engine = 'MyISAM'",
+			"SELECT table_name FROM information_schema.tables WHERE table_schema = ? AND engine = 'MyISAM' AND TABLE_NAME LIKE \"*PREFIX*%\"",
 			array($dbName)
 		);
 
-- 
GitLab